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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(argv, env) ⇒ Command

Returns a new instance of Command.



18
19
20
21
22
23
24
25
26
# File 'lib/vagrant-hosts/command.rb', line 18

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

  split_argv
  register_subcommands

end

Class Method Details

.synopsisObject



14
15
16
# File 'lib/vagrant-hosts/command.rb', line 14

def self.synopsis
  'Information about hostnames managed by the vagrant-hosts plugin'
end

Instance Method Details

#executeObject



28
29
30
# File 'lib/vagrant-hosts/command.rb', line 28

def execute
  invoke_subcommand
end