module UnitHosting::Groups

Public Instance Methods

ids() click to toggle source
# File lib/unit-hosting/group.rb, line 27
def ids
  collect { |g| g.instance_id }
end
tablize() click to toggle source
# File lib/unit-hosting/group.rb, line 15
def tablize
  return "no groups" if length == 0
  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
update() click to toggle source
# File lib/unit-hosting/group.rb, line 10
def update
  each { |g| g.update}
  self
end