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

Version Path
r10k-1.3.5 lib/r10k/task/environment.rb
r10k-1.3.4 lib/r10k/task/environment.rb
r10k-1.2.4 lib/r10k/task/environment.rb
r10k-1.3.3 lib/r10k/task/environment.rb
r10k-1.3.2 lib/r10k/task/environment.rb
r10k-1.2.3 lib/r10k/task/environment.rb
r10k-1.3.1 lib/r10k/task/environment.rb
r10k-1.2.2 lib/r10k/task/environment.rb
r10k-1.3.0 lib/r10k/task/environment.rb
r10k-1.3.0rc1 lib/r10k/task/environment.rb
r10k-1.2.1 lib/r10k/task/environment.rb
r10k-1.2.0 lib/r10k/task/environment.rb
r10k-1.2.0rc2 lib/r10k/task/environment.rb
r10k-1.1.4 lib/r10k/task/environment.rb
r10k-1.2.0rc1 lib/r10k/task/environment.rb
r10k-1.1.3 lib/r10k/task/environment.rb
r10k-1.1.2 lib/r10k/task/environment.rb
r10k-1.1.1 lib/r10k/task/environment.rb
r10k-1.1.1rc1 lib/r10k/task/environment.rb
r10k-1.1.0 lib/r10k/task/environment.rb