Class: Yun::ImageCommand
- Inherits:
-
Thor
- Object
- Thor
- Yun::ImageCommand
- Includes:
- CommandBase
- Defined in:
- lib/yun/commands/image_command.rb
Instance Method Summary collapse
Methods included from CommandBase
Instance Method Details
#list ⇒ Object
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 |