# File lib/god/cli/command.rb, line 68 def status_command watches = {} @server.status.each do |name, status| g = status[:group] || '' unless watches.has_key?(g) watches[g] = {} end watches[g][name] = status end watches.keys.sort.each do |group| puts "#{group}:" unless group.empty? watches[group].keys.sort.each do |name| state = watches[group][name][:state] print " " unless group.empty? puts "#{name}: #{state}" end end end