Class: R10K::Action::Deploy::Display
- Inherits:
-
Object
- Object
- R10K::Action::Deploy::Display
- Includes:
- Visitor, Logging, Util::Setopts
- Defined in:
- lib/r10k/action/deploy/display.rb
Constant Summary
Constants included from Logging
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(opts, argv) ⇒ Display
constructor
A new instance of Display.
Methods included from Visitor
Methods included from Logging
formatter, included, level, level=, levels, #logger, #logger_name, outputter, parse_level
Constructor Details
#initialize(opts, argv) ⇒ Display
Returns a new instance of Display.
13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/r10k/action/deploy/display.rb', line 13 def initialize(opts, argv) @opts = opts @argv = argv setopts(opts, { :config => :self, :puppetfile => :self, :detail => :self, :trace => :self }) @level = 4 @indent = 0 end |
Instance Method Details
#call ⇒ Object
27 28 29 30 31 32 |
# File 'lib/r10k/action/deploy/display.rb', line 27 def call @visit_ok = true deployment = R10K::Deployment.load_config(@config) deployment.accept(self) @visit_ok end |