Class: R10K::Task::Puppetfile::Sync Deprecated
- Defined in:
- lib/r10k/task/puppetfile.rb
Overview
Deprecated.
Constant Summary
Constants included from Logging
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(puppetfile) ⇒ Sync
constructor
A new instance of Sync.
Methods included from Logging
formatter, included, level, level=, levels, #logger, #logger_name, outputter, parse_level
Constructor Details
#initialize(puppetfile) ⇒ Sync
Returns a new instance of Sync.
11 12 13 |
# File 'lib/r10k/task/puppetfile.rb', line 11 def initialize(puppetfile) @puppetfile = puppetfile end |
Instance Method Details
#call ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/r10k/task/puppetfile.rb', line 15 def call logger.info "Loading modules from Puppetfile into queue" @puppetfile.load @puppetfile.modules.each do |mod| task = R10K::Task::Module::Sync.new(mod) task_runner.insert_task_after(self, task) end purge_task = Purge.new(@puppetfile) task_runner.append_task purge_task end |