Sha256: 473528aaef96974efce82e4fad680bfbade92b473d1472c00685532cd91bce5b

Contents?: true

Size: 490 Bytes

Versions: 3

Compression:

Stored size: 490 Bytes

Contents

module Smartdc::Cli
  class Image < Thor
    include Smartdc::CliHelper

    desc 'list', 'Provides a list of images available in this datacenter.'
    def list
      output Smartdc.images, options.merge(table: :horizontal, include: %i[
        id name version type os
      ])
    end

    desc 'show [ID]', 'Gets an individual image by id.'
    def show(id)
      output Smartdc.image(id), options.merge(table: :vertical, exclude: %i[
        description files
      ])
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
smartdc-2.0.2 lib/smartdc/cli/image.rb
smartdc-2.0.1 lib/smartdc/cli/image.rb
smartdc-2.0.0 lib/smartdc/cli/image.rb