Class: Jets::Cfn::Resource::AssociatedOutputs

Inherits:
Object
  • Object
show all
Extended by:
Memoist
Defined in:
lib/jets/cfn/resource/associated_outputs.rb

Instance Method Summary collapse

Constructor Details

#initialize(outputs = {}, replacements = {}) ⇒ AssociatedOutputs

Returns a new instance of AssociatedOutputs.



5
6
7
8
# File 'lib/jets/cfn/resource/associated_outputs.rb', line 5

def initialize(outputs = {}, replacements = {})
  @outputs = outputs
  @replacements = replacements
end

Instance Method Details

#outputsObject



15
16
17
18
19
# File 'lib/jets/cfn/resource/associated_outputs.rb', line 15

def outputs
  outputs = replacer.replace_placeholders(@outputs)
  outputs.transform_values! { |value| value.camelize }
  outputs.transform_keys! { |key| replacer.replace_value(key) }
end

#replacerObject



10
11
12
# File 'lib/jets/cfn/resource/associated_outputs.rb', line 10

def replacer
  Replacer.new(@replacements)
end