Class: Jets::Cfn::Resource::AssociatedOutputs
- Inherits:
-
Object
- Object
- Jets::Cfn::Resource::AssociatedOutputs
- Extended by:
- Memoist
- Defined in:
- lib/jets/cfn/resource/associated_outputs.rb
Instance Method Summary collapse
-
#initialize(outputs = {}, replacements = {}) ⇒ AssociatedOutputs
constructor
A new instance of AssociatedOutputs.
- #outputs ⇒ Object
- #replacer ⇒ Object
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
#outputs ⇒ Object
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 |