Sha256: e270f0695f4094bb6c28b4ea2ddec9681989ce0ebb52abcd990dd6e6330073c1

Contents?: true

Size: 414 Bytes

Versions: 1

Compression:

Stored size: 414 Bytes

Contents

module Yun
  class ImageCommand < Thor

    include CommandBase

    desc "image list", "list all available images"
    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
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
yun-0.0.6 lib/yun/commands/image_command.rb