Sha256: 260b8a4bb7b83b940e605c4db9e1c9d34ffb0f6eea570fb10ad3ec099eefa532
Contents?: true
Size: 723 Bytes
Versions: 13
Compression:
Stored size: 723 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_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
13 entries across 13 versions & 1 rubygems