Sha256: 66dea5356b8b5f97c6460f135be4016355a8bba7dba4a7b057a3258657afa6eb
Contents?: true
Size: 567 Bytes
Versions: 26
Compression:
Stored size: 567 Bytes
Contents
require 'r10k/task' require 'r10k/task/puppetfile' module R10K module Task module Environment class Deploy < R10K::Task::Base attr_writer :update_puppetfile def initialize(environment) @environment = environment @update_puppetfile = false end def call logger.notice "Deploying environment #{@environment.dirname}" @environment.sync if @update_puppetfile task = R10K::Task::Puppetfile::Sync.new(@environment.puppetfile) task_runner.insert_task_after(self, task) end end end end end end
Version data entries
26 entries across 26 versions & 1 rubygems