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