Class: R10K::Action::Deploy::Module

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

Constant Summary

Constants included from Logging

Logging::LOG_LEVELS

Instance Method Summary collapse

Methods included from Visitor

#visit

Methods included from Logging

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

Constructor Details

#initialize(opts, argv) ⇒ Module

Returns a new instance of Module.



14
15
16
17
18
19
20
21
22
23
24
# File 'lib/r10k/action/deploy/module.rb', line 14

def initialize(opts, argv)
  @opts = opts
  @argv = argv
  setopts(opts, {
    :config      => :self,
    :environment => nil,
    :trace       => :self
  })

  @purge = true
end

Instance Method Details

#callObject



26
27
28
29
30
31
# File 'lib/r10k/action/deploy/module.rb', line 26

def call
  @visit_ok = true
  deployment = R10K::Deployment.load_config(@config)
  deployment.accept(self)
  @visit_ok
end