Class: Eclair::EC2GroupItem
- Defined in:
- lib/eclair/providers/ec2/ec2_group_item.rb
Instance Attribute Summary
Attributes inherited from GroupItem
Attributes inherited from Item
Instance Method Summary collapse
Methods inherited from GroupItem
#color, #initialize, #length, #select, #toggle_select
Methods inherited from Item
#command, #id, #initialize, #search_key, #select, #title, #toggle_select
Methods included from ConfigHelper
Constructor Details
This class inherits a constructor from Eclair::GroupItem
Instance Method Details
#header ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/eclair/providers/ec2/ec2_group_item.rb', line 6 def header running = @items.count{|i| i.instance.state[:code] == 16} all = @items.count <<-EOS Group #{label} #{running} Instances Running / #{all} Instances Total EOS end |