Class: Vagrant::Puppetfile::Evaluator::R10k
- Defined in:
- lib/vagrant/puppetfile.rb
Constant Summary
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#command, #initialize, #run, #validate, #with_clean_env
Constructor Details
This class inherits a constructor from Vagrant::Puppetfile::Evaluator::Base
Instance Method Details
#available? ⇒ Boolean
209 210 211 212 213 |
# File 'lib/vagrant/puppetfile.rb', line 209 def available? command('version').last.success? rescue SystemCallError false end |
#install(puppetfile) ⇒ Object
215 216 217 218 |
# File 'lib/vagrant/puppetfile.rb', line 215 def install(puppetfile) validate(puppetfile) run('puppetfile', 'install', '--verbose') end |