Class: Smartdc::Cli::Main

Inherits:
Thor
  • Object
show all
Defined in:
lib/smartdc/cli.rb

Instance Method Summary collapse

Instance Method Details

#initObject



25
26
27
28
29
30
31
32
33
# File 'lib/smartdc/cli.rb', line 25

def init
  clicfg = Smartdc::CliConfigure.new
  clicfg.init
  Smartdc::Cli.setup
  Smartdc.keys
  puts 'Successful configuration.'
rescue
  puts 'Failed Configuration.'
end

#versionObject



20
21
22
# File 'lib/smartdc/cli.rb', line 20

def version
  puts "sdc #{Smartdc::VERSION}"
end