Class: Formatron::CloudFormation::Template::Parameters

Inherits:
Object
  • Object
show all
Defined in:
lib/formatron/cloud_formation/template/parameters.rb

Overview

generates CloudFormation parameter declarations

Instance Method Summary collapse

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