Class: R10K::Action::Deploy::Module
- Inherits:
-
Object
- Object
- R10K::Action::Deploy::Module
- Includes:
- Visitor, Logging, Util::Setopts
- Defined in:
- lib/r10k/action/deploy/module.rb
Constant Summary
Constants included from Logging
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(opts, argv) ⇒ Module
constructor
A new instance of Module.
Methods included from Visitor
Methods included from Logging
formatter, included, level, level=, levels, #logger, #logger_name, outputter, 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
#call ⇒ Object
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 |