Sha256: 6b5830b77ae94f150851febcfbe66ba6f2240c3fc4b066c6f077262ff3cc084d
Contents?: true
Size: 730 Bytes
Versions: 8
Compression:
Stored size: 730 Bytes
Contents
module Ufo::TaskDefinition::Helpers module StackOutput include Ufo::AwsServices include Ufo::Concerns::Names def stack_output(name) stack_name, output_key = name.split(".") stack_name = names.expansion(stack_name) stack = find_stack(stack_name) unless stack logger.error "ERROR: Stack not found: #{stack_name}".color(:red) call_line = ufo_config_call_line DslEvaluator.print_code(call_line) return end o = stack.outputs.detect { |h| h.output_key == output_key } if o o.output_value else logger.warn "WARN: NOT FOUND: output #{output_key} for stack #{stack_name}".color(:yellow) nil end end end end
Version data entries
8 entries across 8 versions & 1 rubygems