Class: R10K::Action::Deploy::Display
- Includes:
- DeployHelpers
- Defined in:
- lib/r10k/action/deploy/display.rb
Constant Summary
Constants included from Logging
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods included from DeployHelpers
#check_write_lock!, #expect_config!
Methods inherited from Base
Methods included from Logging
debug_formatter, default_formatter, default_outputter, #logger, #logger_name, parse_level
Constructor Details
This class inherits a constructor from R10K::Action::Base
Instance Method Details
#call ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/r10k/action/deploy/display.rb', line 12 def call expect_config! deployment = R10K::Deployment.new(@settings) if @fetch deployment.preload! end output = { :sources => deployment.sources.map { |source| source_info(source, @argv) } } case @format when 'json' then json_format(output) else yaml_format(output) end # exit 0 true rescue => e logger.error R10K::Errors::Formatting.format_exception(e, @trace) false end |