Class: Tantot::Manager
- Inherits:
-
Object
- Object
- Tantot::Manager
- Defined in:
- lib/tantot/manager.rb
Instance Method Summary collapse
Instance Method Details
#run(&block) ⇒ Object
3 4 5 6 7 |
# File 'lib/tantot/manager.rb', line 3 def run(&block) yield ensure sweep end |
#sweep(strategy_name = nil) ⇒ Object
9 10 11 |
# File 'lib/tantot/manager.rb', line 9 def sweep(strategy_name = nil) Tantot.agent_registry.each_agent {|agent| agent.sweep(strategy_name)} end |