Class: Armada::InspectCli

Inherits:
Thor
  • Object
show all
Defined in:
lib/armada/cli/inspect.rb

Instance Method Summary collapse

Instance Method Details

#shortObject



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/armada/cli/inspect.rb', line 6

def short
#   Armada.ui.info "Gathering information for #{@options[:hosts].join(', ')}..."

#   hosts = Armada::.new(@options[:hosts])
#   hosts.each do |connection|
#     running_containers = []
#     Armada::Container.all(connection).each do |container|
#       state = container.json["State"]
#       if state["Running"]
#         running_containers <<
#         {
#           :container_id   => container.id[0..10],
#           :container_name => container.json["Name"],
#           :pid            => state["Pid"],
#           :uptime         => Time.seconds_to_string(Time.now - Time.parse(state["StartedAt"])),
#         }
#       end
#     end
#     tp running_containers
#   end
end