Class: Oscar::Command

Inherits:
Object
  • Object
show all
Includes:
Helpers
Defined in:
lib/oscar/command.rb

Defined Under Namespace

Modules: Helpers Classes: Init, InitVMs

Instance Method Summary collapse

Constructor Details

#initialize(argv, env) ⇒ Command

Returns a new instance of Command.



11
12
13
14
15
16
17
18
# File 'lib/oscar/command.rb', line 11

def initialize(argv, env)
  @argv     = argv
  @env      = env
  @cmd_name = 'oscar'

  split_argv
  register_subcommands
end

Instance Method Details

#executeObject



20
21
22
# File 'lib/oscar/command.rb', line 20

def execute
  invoke_subcommand
end