Class: Formatron::CloudFormation::Template::Parameters
- Inherits:
-
Object
- Object
- Formatron::CloudFormation::Template::Parameters
- Defined in:
- lib/formatron/cloud_formation/template/parameters.rb
Overview
generates CloudFormation parameter declarations
Instance Method Summary collapse
-
#initialize(keys:) ⇒ Parameters
constructor
A new instance of Parameters.
- #merge(parameters:) ⇒ Object
Constructor Details
#initialize(keys:) ⇒ Parameters
Returns a new instance of Parameters.
6 7 8 |
# File 'lib/formatron/cloud_formation/template/parameters.rb', line 6 def initialize(keys:) @keys = keys end |
Instance Method Details
#merge(parameters:) ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/formatron/cloud_formation/template/parameters.rb', line 10 def merge(parameters:) @keys.each do |key| parameters[key] = { Type: 'String' } end end |