Class: Smartdc::Cli::Main
- Inherits:
-
Thor
- Object
- Thor
- Smartdc::Cli::Main
- Defined in:
- lib/smartdc/cli.rb
Instance Method Summary collapse
Instance Method Details
#init ⇒ Object
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 |
#version ⇒ Object
20 21 22 |
# File 'lib/smartdc/cli.rb', line 20 def version puts "sdc #{Smartdc::VERSION}" end |