Module: UnitHosting::Groups

Defined in:
lib/unit-hosting/group.rb

Instance Method Summary collapse

Instance Method Details

#idsObject



25
26
27
# File 'lib/unit-hosting/group.rb', line 25

def ids
  collect { |g| g.instance_id }
end

#tablizeObject



14
15
16
17
18
19
20
21
22
23
# File 'lib/unit-hosting/group.rb', line 14

def tablize
  table = Mutter::Table.new(:delimiter => '|') do
    column :style => :green
    column
  end
  each do |group|
    table << [group.instance_id, group.name]
  end
  table.to_s if length > 0
end

#updateObject



9
10
11
12
# File 'lib/unit-hosting/group.rb', line 9

def update
  each { |g| g.update}
  self
end