Method: Host#show

Defined in:
lib/cloudstack-cli/commands/host.rb

#show(name) ⇒ Object



33
34
35
36
37
38
39
40
41
42
# File 'lib/cloudstack-cli/commands/host.rb', line 33

def show(name)
  unless host = client.list_hosts(name: name).first
    say "No host with name '#{name}' found."
  else
    table = host.map do |key, value|
      [ set_color("#{key}:", :yellow), "#{value}" ]
    end
    print_table table
  end
end