Class: Smartdc::Cli::Datacenter

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

Instance Method Summary collapse

Methods included from Smartdc::CliHelper

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

Instance Method Details

#listObject



6
7
8
# File 'lib/smartdc/cli/datacenter.rb', line 6

def list
  output Smartdc.datacenters, options.merge(table: :vertical)
end

#show(name) ⇒ Object



11
12
13
# File 'lib/smartdc/cli/datacenter.rb', line 11

def show(name)
  output Smartdc.datacenter(name)
end