Class: Rookout::TriggerServices
- Inherits:
-
Object
- Object
- Rookout::TriggerServices
- Defined in:
- lib/rookout/trigger_services.rb
Instance Method Summary collapse
- #clear_augs ⇒ Object
- #close ⇒ Object
- #get_service(name) ⇒ Object
-
#initialize ⇒ TriggerServices
constructor
A new instance of TriggerServices.
- #remove_aug(aug_id) ⇒ Object
- #start ⇒ Object
Constructor Details
#initialize ⇒ TriggerServices
Returns a new instance of TriggerServices.
6 7 8 9 10 |
# File 'lib/rookout/trigger_services.rb', line 6 def initialize super @services = {} end |
Instance Method Details
#clear_augs ⇒ Object
20 21 22 |
# File 'lib/rookout/trigger_services.rb', line 20 def clear_augs @services.each_value(&:clear_augs) end |
#close ⇒ Object
29 30 31 32 |
# File 'lib/rookout/trigger_services.rb', line 29 def close @services.each_value(&:close) @services = {} end |
#get_service(name) ⇒ Object
12 13 14 |
# File 'lib/rookout/trigger_services.rb', line 12 def get_service name @services[name] end |
#remove_aug(aug_id) ⇒ Object
16 17 18 |
# File 'lib/rookout/trigger_services.rb', line 16 def remove_aug aug_id @services.each_value { |service| service.remove_aug aug_id } end |