Class: Ruboty::Niftycloud::Actions::ComputingLoadBalancerList
- Defined in:
- lib/ruboty/niftycloud/actions/computing_load_balancer_list.rb
Constant Summary
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#accounts, #computing, #current_account, #current_region, #initialize, #rdb
Constructor Details
This class inherits a constructor from Ruboty::Niftycloud::Actions::Base
Instance Method Details
#call ⇒ Object
5 6 7 8 9 |
# File 'lib/ruboty/niftycloud/actions/computing_load_balancer_list.rb', line 5 def call computing.load_balancers.each do |load_balancer| .reply "#{load_balancer['LoadBalancerName']} #{load_balancer['DNSName']} #{load_balancer['ListenerDescriptions']} #{load_balancer['Instances'] ? [load_balancer['Instances']['member']].flatten.size : ''} #{}" end end |