cfn2dsl 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/cfn2dsl.rb +1 -1
  3. data/lib/cfndsl.erb +8 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 586d1c3a0f6716123303a6cfe7f7af3a7c85b13c
4
- data.tar.gz: f4d6d21a4e9b79073f0ddbf0b7f9562bc33b4174
3
+ metadata.gz: 007c46d0cac4446eb0fb203013ae65165615b021
4
+ data.tar.gz: 8ff4a301b02935f97df3c59d40f982a88ea58198
5
5
  SHA512:
6
- metadata.gz: 65bd8bf97a568b05a128cec15804d6f218c8ca39943ce791ce7d6c68a1b132e2f664d9d7b5c9dae151d5e1512554b1b1b3ee4d2638a681382c27349f9d82bcb1
7
- data.tar.gz: 057ba371b67b737e833ce29a2266e6c35ad64b652fd200946b59be27d16437639a3d194b07afaf9460185cbdd5166e2552b59bdddacde6276cd107ee0d215508
6
+ metadata.gz: 6b6f8765d61ee20f630f5fd5ea2e555d15ebcbb6e5329e6cc95194f83b9cb0fbdddd559fc14d735fbdf51c0ff14ab5b97f35c7f42068e7909425e341179e822b
7
+ data.tar.gz: 6d818cd14ae54904f997b56f58e8a455751aba59a5cd864769e1cdd776f15a30d2cb4cee662ed0ed5c9c7eec93d40f27daa42523abf6a38f461a53194fd4880f
data/lib/cfn2dsl.rb CHANGED
@@ -21,4 +21,4 @@ AwesomePrint.defaults = {
21
21
  :plain => true
22
22
  }
23
23
 
24
- VERSION="0.1.4"
24
+ VERSION="0.1.5"
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(<%= res.creation_policy.dump %>)
96
+ CreationPolicy(<%= name.dump%>, <%= value %>)
91
97
  <%
98
+ end
92
99
  end
93
100
  %>
94
101
  <%
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cfn2dsl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - kevin yung (kevin.yung@rea-group.com)