Class: R10K::Action::Deploy::Display

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

Constant Summary

Constants included from Logging

Logging::LOG_LEVELS

Instance Method Summary collapse

Methods included from Visitor

#visit

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

#callObject



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