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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 74e1c2b7738699dc55f1d641e37a97d7bcbaaa56
4
- data.tar.gz: 6e257699318356d023b9fe7a1b4b1522fe1a255f
3
+ metadata.gz: 7673d9ab4690397bc91291883d3a0ff6f236fa82
4
+ data.tar.gz: 18e6b17411389953dd12b603d916edc548009fba
5
5
  SHA512:
6
- metadata.gz: d9166486cb23afd886951ca990cac1111c493894a98aa20ac1c2036f2c056fbb5e45d85f94513aa880088e07b0141b3596796aca1040e9d8cda176218d7ec974
7
- data.tar.gz: 9e91f7ff4cd58ebdd28488ef924dc37d10d391021f0f9e665508af999e202261972a828596e75b141d1414f8ad21161da5dec8b9a5d01a55e6d57bde7a0a9ab8
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
- { 'Fn::GetAtt' => [@resource.name, @attribute] }
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
@@ -1,3 +1,3 @@
1
1
  module CloudFormer
2
- VERSION = '0.3.3'
2
+ VERSION = '0.3.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloud_former
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aubrey Holland