Class: VagrantHosts::Command::Puppetize
- Inherits:
-
Object
- Object
- VagrantHosts::Command::Puppetize
- Defined in:
- lib/vagrant-hosts/command/puppetize.rb
Class Method Summary collapse
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(argv, env) ⇒ Puppetize
constructor
A new instance of Puppetize.
Constructor Details
#initialize(argv, env) ⇒ Puppetize
Returns a new instance of Puppetize.
10 11 12 13 14 15 16 |
# File 'lib/vagrant-hosts/command/puppetize.rb', line 10 def initialize(argv, env) @argv = argv @env = env @cmd_name = 'hosts puppetize' split_argv end |
Class Method Details
.synopsis ⇒ Object
6 7 8 |
# File 'lib/vagrant-hosts/command/puppetize.rb', line 6 def self.synopsis 'List private_network host info as Puppet Host resources' end |
Instance Method Details
#execute ⇒ Object
18 19 20 21 22 23 |
# File 'lib/vagrant-hosts/command/puppetize.rb', line 18 def execute argv = (parser) @env.ui.info format_hosts 0 end |