cfn2dsl 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cfn2dsl.rb +1 -1
- data/lib/cfndsl.erb +8 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 007c46d0cac4446eb0fb203013ae65165615b021
|
4
|
+
data.tar.gz: 8ff4a301b02935f97df3c59d40f982a88ea58198
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b6f8765d61ee20f630f5fd5ea2e555d15ebcbb6e5329e6cc95194f83b9cb0fbdddd559fc14d735fbdf51c0ff14ab5b97f35c7f42068e7909425e341179e822b
|
7
|
+
data.tar.gz: 6d818cd14ae54904f997b56f58e8a455751aba59a5cd864769e1cdd776f15a30d2cb4cee662ed0ed5c9c7eec93d40f27daa42523abf6a38f461a53194fd4880f
|
data/lib/cfn2dsl.rb
CHANGED
data/lib/cfndsl.erb
CHANGED
@@ -86,9 +86,16 @@ CloudFormation do
|
|
86
86
|
Type("<%= res.type %>")
|
87
87
|
<%
|
88
88
|
if res.creation_policy
|
89
|
+
res.creation_policy.each_pair do |name, value|
|
90
|
+
if value.instance_of? String
|
91
|
+
value = value.dump
|
92
|
+
else
|
93
|
+
value = value.ai
|
94
|
+
end
|
89
95
|
%>
|
90
|
-
CreationPolicy(<%=
|
96
|
+
CreationPolicy(<%= name.dump%>, <%= value %>)
|
91
97
|
<%
|
98
|
+
end
|
92
99
|
end
|
93
100
|
%>
|
94
101
|
<%
|