Class: Smartdc::Cli::Package

Inherits:
Thor
  • Object
show all
Includes:
Smartdc::CliHelper
Defined in:
lib/smartdc/cli/package.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/package.rb', line 6

def list
  output Smartdc.packages, options.merge(table: :horizontal, include: %i[
    id name version memory disk vcpus group
  ])
end

#show(name) ⇒ Object



13
14
15
# File 'lib/smartdc/cli/package.rb', line 13

def show(name)
  output Smartdc.package(name), options.merge(table: :vertical)
end