Class: VagrantHosts::Command

Inherits:
Object
  • Object
show all
Includes:
Helpers
Defined in:
lib/vagrant-hosts/command.rb

Defined Under Namespace

Modules: Helpers Classes: List, Puppetize

Instance Method Summary collapse

Constructor Details

#initialize(argv, env) ⇒ Command

Returns a new instance of Command.



14
15
16
17
18
19
20
21
22
# File 'lib/vagrant-hosts/command.rb', line 14

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

  split_argv
  register_subcommands

end

Instance Method Details

#executeObject



24
25
26
# File 'lib/vagrant-hosts/command.rb', line 24

def execute
  invoke_subcommand
end