Class: Mccloud::Command::BalanceCommand
- Defined in:
- lib/mccloud/command/balance.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Methods included from Helpers
Constructor Details
This class inherits a constructor from Mccloud::Command::Base
Instance Method Details
#execute ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'lib/mccloud/command/balance.rb', line 8 def execute env.load! env.config.providers.each do |name,provider| env.logger.debug("Asking provider #{name} to associate to #{selection}") provider.on_selected_components("lb",selection) do |id,lb| lb.associate() end end end |