Class: BoxCli::BoxCommand

Inherits:
Command
  • Object
show all
Defined in:
lib/box_cli/box_command.rb

Constant Summary

Constants inherited from Command

Command::GLOBAL_OPTION_NAMES

Instance Attribute Summary

Attributes inherited from Command

#args, #global_options, #local_options

Instance Method Summary collapse

Constructor Details

#initialize(options, args) ⇒ BoxCommand

Returns a new instance of BoxCommand.



3
4
5
6
7
# File 'lib/box_cli/box_command.rb', line 3

def initialize(options, args)
  super
  collect_globals_from_console
  partition_options
end

Instance Method Details

#wrapperObject



9
10
11
# File 'lib/box_cli/box_command.rb', line 9

def wrapper
  Wrapper.new(@global_options.api_key, @global_options.user, @global_options.password)
end