cloud_former 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cloud_former/functions/get_att.rb +5 -1
- data/lib/cloud_former/version.rb +1 -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: 7673d9ab4690397bc91291883d3a0ff6f236fa82
|
4
|
+
data.tar.gz: 18e6b17411389953dd12b603d916edc548009fba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 74b04cbda650db8152325afb16d1d40a8845a97375e8e19aeb534c7c721c314e371d3ba3e4d80074fb5b999d92bcd4c184101d4874e27c7f1f5ad038dcb504d4
|
7
|
+
data.tar.gz: e5a0ab90d3fcae6c6a0ff9f3ca46a6b0ae048c3d272b9344641f9a8c3a3d120611499096176e0df00b0e59322ccff26b5a843b4d0bdaa0c41715cc07035dc3b6
|
@@ -12,7 +12,11 @@ module CloudFormer
|
|
12
12
|
end
|
13
13
|
|
14
14
|
def dump_json
|
15
|
-
|
15
|
+
if @resource.respond_to?(:name)
|
16
|
+
{ 'Fn::GetAtt' => [@resource.name, @attribute] }
|
17
|
+
elsif @resource.respond_to?(:to_s)
|
18
|
+
{ 'Fn::GetAtt' => [@resource.to_s, @attribute] }
|
19
|
+
end
|
16
20
|
end
|
17
21
|
end
|
18
22
|
end
|
data/lib/cloud_former/version.rb
CHANGED