7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# File 'lib/messed/tasks/status.rb', line 7
def status
booter = Messed::Booter.new($root, options.environment)
puts "=Queues"
puts "==Incoming"
booter.application.incoming.status.each {|k,v|
puts " %40s - %s" % [k, v]
}
puts "==Outgoing"
booter.application.outgoing.status.each {|k,v|
puts " %40s - %s" % [k, v]
}
puts "=Interfaces"
booter.interface_map.each {|name, interface|
puts "==#{interface.name}"
Messed::Util::RemoteStatus.new(interface.configuration.options['host'], interface.configuration.options['port']).status.each {|k,v|
puts " %40s - %s" % [k, v]
}
}
puts "=Application"
Messed::Util::RemoteStatus.new(booter.application.configuration['host'], booter.application.configuration['port']).status.each {|k,v|
puts " %40s - %s" % [k, v]
}
end
|