Class: Smartdc::Cli::Image

Inherits:
Thor
  • Object
show all
Includes:
Smartdc::CliHelper
Defined in:
lib/smartdc/cli/image.rb

Instance Method Summary collapse

Methods included from Smartdc::CliHelper

#describe, #horizontal, #output, #use_machine, #vertical

Instance Method Details

#listObject



6
7
8
9
10
# File 'lib/smartdc/cli/image.rb', line 6

def list
  output Smartdc.images, options.merge(table: :horizontal, include: %i[
    id name version type os
  ])
end

#show(id) ⇒ Object



13
14
15
16
17
# File 'lib/smartdc/cli/image.rb', line 13

def show(id)
  output Smartdc.image(id), options.merge(table: :vertical, exclude: %i[
    description files
  ])
end