class R10K::Action::Puppetfile::Install
Public Instance Methods
call()
click to toggle source
# File lib/r10k/action/puppetfile/install.rb, line 11 def call @visit_ok = true pf = R10K::Puppetfile.new(@root, @moduledir, @puppetfile) pf.accept(self) @visit_ok end
Private Instance Methods
allowed_initialize_opts()
click to toggle source
Calls superclass method
R10K::Action::Base#allowed_initialize_opts
# File lib/r10k/action/puppetfile/install.rb, line 33 def allowed_initialize_opts super.merge(root: :self, puppetfile: :self, moduledir: :self) end
visit_module(mod)
click to toggle source
# File lib/r10k/action/puppetfile/install.rb, line 28 def visit_module(mod) logger.info "Updating module #{mod.path}" mod.sync end
visit_puppetfile(pf) { || ... }
click to toggle source
# File lib/r10k/action/puppetfile/install.rb, line 22 def visit_puppetfile(pf) pf.load! yield pf.purge! end