Class: Vagrant::Puppetfile::Evaluator::R10k

Inherits:
Base
  • Object
show all
Defined in:
lib/vagrant/puppetfile.rb

Constant Summary

Constants inherited from Base

Base::ENV_CLEAN_KEYS

Instance Attribute Summary

Attributes inherited from Base

#logger, #path

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

Returns:

  • (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