class R10K::Action::Puppetfile::CriRunner

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.

Public Instance Methods

handle_opts(opts) click to toggle source
Calls superclass method R10K::Action::CriRunner#handle_opts
# File lib/r10k/action/puppetfile/cri_runner.rb, line 13
def handle_opts(opts)
  opts[:root]       ||= wd
  opts[:moduledir]  ||= env['PUPPETFILE_DIR']
  opts[:puppetfile] ||= env['PUPPETFILE']
  super(opts)
end

Private Instance Methods

env() click to toggle source
# File lib/r10k/action/puppetfile/cri_runner.rb, line 22
def env
  ENV
end
wd() click to toggle source
# File lib/r10k/action/puppetfile/cri_runner.rb, line 26
def wd
  Dir.getwd
end