Class: Gorgon::CallbackHandler
- Inherits:
-
Object
- Object
- Gorgon::CallbackHandler
- Defined in:
- lib/gorgon/callback_handler.rb
Instance Method Summary collapse
- #after_complete ⇒ Object
- #after_creating_workers ⇒ Object
- #after_job_finishes ⇒ Object
- #after_sync ⇒ Object
- #before_creating_workers ⇒ Object
- #before_originate ⇒ Object
- #before_start ⇒ Object
-
#initialize(config) ⇒ CallbackHandler
constructor
A new instance of CallbackHandler.
Constructor Details
#initialize(config) ⇒ CallbackHandler
Returns a new instance of CallbackHandler.
3 4 5 6 |
# File 'lib/gorgon/callback_handler.rb', line 3 def initialize(config) @config = config || {} load(@config[:callbacks_class_file]) if @config[:callbacks_class_file] end |
Instance Method Details
#after_complete ⇒ Object
29 30 31 |
# File 'lib/gorgon/callback_handler.rb', line 29 def after_complete Gorgon.callbacks.after_complete end |
#after_creating_workers ⇒ Object
25 26 27 |
# File 'lib/gorgon/callback_handler.rb', line 25 def after_creating_workers Gorgon.callbacks.after_creating_workers end |
#after_job_finishes ⇒ Object
33 34 35 |
# File 'lib/gorgon/callback_handler.rb', line 33 def after_job_finishes Gorgon.callbacks.after_job_finishes end |
#after_sync ⇒ Object
13 14 15 |
# File 'lib/gorgon/callback_handler.rb', line 13 def after_sync Gorgon.callbacks.after_sync end |
#before_creating_workers ⇒ Object
17 18 19 |
# File 'lib/gorgon/callback_handler.rb', line 17 def before_creating_workers Gorgon.callbacks.before_creating_workers end |