class R10K::Action::Base
Attributes
settings[RW]
Public Class Methods
new(opts, argv, settings = {})
click to toggle source
@param opts [Hash] A hash of options defined in allowed_initialized_opts
and managed by the SetOps mixin within the Action::Base class. Corresponds to the CLI flags and options.
@param argv [Enumerable] Typically CRI::ArgumentList or Array. A list-like
collection of the remaining arguments to the CLI invocation (after removing flags and options).
@param settings [Hash] A hash of configuration loaded from the relevant
config (r10k.yaml).
@note All arguments will be required in the next major version
# File lib/r10k/action/base.rb, line 23 def initialize(opts, argv, settings = {}) @opts = opts @argv = argv @settings = settings setopts(opts, allowed_initialize_opts) end
Private Instance Methods
allowed_initialize_opts()
click to toggle source
# File lib/r10k/action/base.rb, line 33 def allowed_initialize_opts { :config => true, :trace => true, } end