Class: Eclair::EC2GroupItem

Inherits:
GroupItem show all
Defined in:
lib/eclair/providers/ec2/ec2_group_item.rb

Instance Attribute Summary

Attributes inherited from GroupItem

#label, #visible

Attributes inherited from Item

#selected, #visible

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

#config

Constructor Details

This class inherits a constructor from Eclair::GroupItem

Instance Method Details

#headerObject



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