class Tantot::Manager

Public Instance Methods

run() { || ... } click to toggle source
# File lib/tantot/manager.rb, line 3
def run(&block)
  yield
ensure
  sweep
end
sweep(strategy_name = nil) click to toggle source
# File lib/tantot/manager.rb, line 9
def sweep(strategy_name = nil)
  Tantot.agent_registry.each_agent {|agent| agent.sweep(strategy_name)}
end