Module: SkyRunner::Job::ClassMethods
- Defined in:
- lib/skyrunner/job.rb
Instance Method Summary collapse
Instance Method Details
#job_event_methods ⇒ Object
18 19 20 |
# File 'lib/skyrunner/job.rb', line 18 def job_event_methods @_job_event_methods ||= {} end |
#on_completed(*methods) ⇒ Object
10 11 12 |
# File 'lib/skyrunner/job.rb', line 10 def on_completed(*methods) add_job_event_methods(methods, :completed) end |
#on_failed(*methods) ⇒ Object
14 15 16 |
# File 'lib/skyrunner/job.rb', line 14 def on_failed(*methods) add_job_event_methods(methods, :failed) end |