Sha256: dbd8cfc8534e83a6f4e49a5773dcb0ebf3f6156a580b830de7050a8032dece01

Contents?: true

Size: 629 Bytes

Versions: 48

Compression:

Stored size: 629 Bytes

Contents

require 'cfndsl'
CloudFormation do
  Description '<%= @description %>'
<%- @resources.each do |r| -%>
<% restype = r.type.split('::').delete_if{|i|i=='AWS'}
    restype = restype.join('::').gsub('::', '_') %>
  <%= restype %>('<%= r.name %>') do
  <%- ps = r.properties -%>
  <%- ps.keys.each do |p| -%>
  <%- if !r.properties[p]['PrimitiveType'].nil?
      type = r.properties[p]['PrimitiveType']
     elsif r.properties[p]['Type'] == 'List'
       type = '[List]'
     else
       type = r.properties[p]['Type']
     end -%>
    <%= p %> <%= type %> # <%= r.properties[p]['Documentation'] %>
  <%- end -%>
  end
<% end -%>
end

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
cfndsl-1.7.2 lib/cfndsl/cfnlego/cloudformation.erb
cfndsl-1.6.0 lib/cfndsl/cfnlego/cloudformation.erb
cfndsl-1.5.0 lib/cfndsl/cfnlego/cloudformation.erb
cfndsl-1.4.0 lib/cfndsl/cfnlego/cloudformation.erb
cfndsl-1.3.9 lib/cfndsl/cfnlego/cloudformation.erb
cfndsl-1.3.8 lib/cfndsl/cfnlego/cloudformation.erb
cfndsl-1.3.7 lib/cfndsl/cfnlego/cloudformation.erb
cfndsl-1.3.6 lib/cfndsl/cfnlego/cloudformation.erb
cfndsl-1.3.5 lib/cfndsl/cfnlego/cloudformation.erb
cfndsl-1.3.4 lib/cfndsl/cfnlego/cloudformation.erb
cfndsl-1.3.3 lib/cfndsl/cfnlego/cloudformation.erb
cfndsl-1.3.2 lib/cfndsl/cfnlego/cloudformation.erb
cfndsl-1.3.1 lib/cfndsl/cfnlego/cloudformation.erb
cfndsl-1.3.0 lib/cfndsl/cfnlego/cloudformation.erb
cfndsl-1.2.0 lib/cfndsl/cfnlego/cloudformation.erb
cfndsl-1.1.1 lib/cfndsl/cfnlego/cloudformation.erb
cfndsl-1.1.0 lib/cfndsl/cfnlego/cloudformation.erb
cfndsl-1.0.6 lib/cfndsl/cfnlego/cloudformation.erb
cfndsl-1.0.5 lib/cfndsl/cfnlego/cloudformation.erb
cfndsl-1.0.4 lib/cfndsl/cfnlego/cloudformation.erb