Class: R10K::Action::Deploy::Environment
- Includes:
- DeployHelpers, Visitor
- Defined in:
- lib/r10k/action/deploy/environment.rb
Constant Summary
Constants included from Logging
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(opts, argv, settings = {}) ⇒ Environment
constructor
A new instance of Environment.
Methods included from Visitor
Methods included from DeployHelpers
#check_write_lock!, #expect_config!
Methods included from Logging
debug_formatter, default_formatter, default_outputter, #logger, #logger_name, parse_level
Constructor Details
#initialize(opts, argv, settings = {}) ⇒ Environment
Returns a new instance of Environment.
16 17 18 19 20 |
# File 'lib/r10k/action/deploy/environment.rb', line 16 def initialize(opts, argv, settings = {}) @purge = true super @argv = @argv.map { |arg| arg.gsub(/\W/,'_') } end |
Instance Method Details
#call ⇒ Object
22 23 24 25 26 27 28 29 30 31 |
# File 'lib/r10k/action/deploy/environment.rb', line 22 def call @visit_ok = true expect_config! deployment = R10K::Deployment.new(@settings) check_write_lock!(@settings) deployment.accept(self) @visit_ok end |