Sha256: 7914d48e0497d1e77a1f6201e413bafd6e3f2659263674004473477da5d40bc9

Contents?: true

Size: 704 Bytes

Versions: 26

Compression:

Stored size: 704 Bytes

Contents

require 'r10k/action/cri_runner'

module R10K
  module Action
    module Puppetfile
      # Extend the default Cri Runner to use the PUPPETFILE environment
      # variables.
      #
      # @api private
      # @deprecated The use of these environment variables is deprecated and
      #   will be removed in 2.0.0.
      class CriRunner < R10K::Action::CriRunner
        def handle_opts(opts)
          opts[:root]       ||= wd
          opts[:moduledir]  ||= env['PUPPETFILE_DIR']
          opts[:puppetfile] ||= env['PUPPETFILE']
          super(opts)
        end

        private

        def env
          ENV
        end

        def wd
          Dir.getwd
        end
      end
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
r10k-2.5.5 lib/r10k/action/puppetfile/cri_runner.rb
r10k-2.5.4 lib/r10k/action/puppetfile/cri_runner.rb
r10k-2.5.3 lib/r10k/action/puppetfile/cri_runner.rb
r10k-2.5.2 lib/r10k/action/puppetfile/cri_runner.rb
r10k-2.5.1 lib/r10k/action/puppetfile/cri_runner.rb
r10k-2.4.5 lib/r10k/action/puppetfile/cri_runner.rb
r10k-2.3.1 lib/r10k/action/puppetfile/cri_runner.rb
r10k-2.4.4 lib/r10k/action/puppetfile/cri_runner.rb
r10k-2.5.0 lib/r10k/action/puppetfile/cri_runner.rb
r10k-2.4.3 lib/r10k/action/puppetfile/cri_runner.rb
r10k-2.4.1 lib/r10k/action/puppetfile/cri_runner.rb
r10k-2.4.0 lib/r10k/action/puppetfile/cri_runner.rb
r10k-2.3.0 lib/r10k/action/puppetfile/cri_runner.rb
r10k-2.2.2 lib/r10k/action/puppetfile/cri_runner.rb
r10k-2.2.1 lib/r10k/action/puppetfile/cri_runner.rb
r10k-2.2.0 lib/r10k/action/puppetfile/cri_runner.rb
r10k-2.1.1 lib/r10k/action/puppetfile/cri_runner.rb
r10k-2.1.0 lib/r10k/action/puppetfile/cri_runner.rb
r10k-2.0.3 lib/r10k/action/puppetfile/cri_runner.rb
r10k-2.0.2 lib/r10k/action/puppetfile/cri_runner.rb