Class: R10K::Action::Puppetfile::CriRunner Deprecated Private

Inherits:
CriRunner
  • Object
show all
Includes:
Logging
Defined in:
lib/r10k/action/puppetfile/cri_runner.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Deprecated.

The use of these environment variables is deprecated and will be removed in 3.0.0.

Extend the default Cri Runner to use the PUPPETFILE environment variables.

Constant Summary

Constants included from Logging

Logging::LOG_LEVELS

Instance Method Summary collapse

Methods included from Logging

debug_formatter, default_formatter, default_outputter, #logger, #logger_name, parse_level

Methods inherited from CriRunner

#call, #handle_argv, #initialize, #new, wrap

Constructor Details

This class inherits a constructor from R10K::Action::CriRunner

Instance Method Details

#handle_opts(opts) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



16
17
18
19
20
21
22
23
24
# 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