Class: Smartdc::Cli::Package
- Inherits:
-
Thor
- Object
- Thor
- Smartdc::Cli::Package
- 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
#list ⇒ Object
6 7 8 9 10 |
# File 'lib/smartdc/cli/package.rb', line 6 def list output Smartdc.packages, .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), .merge(table: :vertical) end |