Class: R10K::Action::Base

Inherits:
Object
  • Object
show all
Includes:
Logging, Util::Setopts
Defined in:
lib/r10k/action/base.rb

Constant Summary

Constants included from Logging

Logging::LOG_LEVELS

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Logging

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

Constructor Details

#initialize(opts, argv, settings = {}) ⇒ Base

Returns a new instance of Base.



13
14
15
16
17
18
19
# File 'lib/r10k/action/base.rb', line 13

def initialize(opts, argv, settings = {})
  @opts = opts
  @argv = argv
  @settings = settings

  setopts(opts, allowed_initialize_opts)
end

Instance Attribute Details

#settingsObject

Returns the value of attribute settings.



11
12
13
# File 'lib/r10k/action/base.rb', line 11

def settings
  @settings
end