Class: VagrantHosts::Command::Puppetize

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

Instance Method Summary collapse

Constructor Details

#initialize(argv, env) ⇒ Puppetize

Returns a new instance of Puppetize.



6
7
8
9
10
11
12
# File 'lib/vagrant-hosts/command/puppetize.rb', line 6

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

  split_argv
end

Instance Method Details

#executeObject



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

def execute
  argv = parse_options(parser)

  @env.ui.info format_hosts
  0
end