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 3.0.0.
# File lib/r10k/action/puppetfile/cri_runner.rb, line 16 def handle_opts(opts) opts[:root] ||= wd if env['PUPPETFILE_DIR'] || env['PUPPETFILE'] logger.warn _("The use of the PUPPETFILE and PUPPETFILE_DIR environment variables is deprecated.") end opts[:moduledir] ||= env['PUPPETFILE_DIR'] opts[:puppetfile] ||= env['PUPPETFILE'] super(opts) end
# File lib/r10k/action/puppetfile/cri_runner.rb, line 28 def env ENV end
# File lib/r10k/action/puppetfile/cri_runner.rb, line 32 def wd Dir.getwd end