Class: Cloudit::Command::Index
- Defined in:
- lib/cloudit/command/index.rb
Constant Summary
Constants inherited from Base
Base::DEFAULT_DIRECTORY, Base::OPTION_NAME_OFFSET, Base::VALID_METHODS
Instance Method Summary collapse
Methods inherited from Base
#execute, #help, #initialize, #invalid_method, #parser, #slop_opts
Constructor Details
This class inherits a constructor from Cloudit::Command::Base
Instance Method Details
#index ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/cloudit/command/index.rb', line 6 def index if @opts.version? str = "Cloudit version #{Cloudit::VERSION}." elsif @opts.help? str = usage else str = usage end $stdout.puts str end |