Class: Yun::ImageCommand

Inherits:
Thor
  • Object
show all
Includes:
CommandBase
Defined in:
lib/yun/commands/image_command.rb

Instance Method Summary collapse

Methods included from CommandBase

#connection, #init_data

Instance Method Details

#listObject



7
8
9
10
11
12
13
14
15
16
17
# File 'lib/yun/commands/image_command.rb', line 7

def list
  images = Config.images
  result = images.keys.map do |key|
    {
      "image id" => images[key][:image],
      "os type" => key,
      "login user" => images[key][:user]
    }
  end
  puts Hirb::Helpers::AutoTable.render result
end