convection 1.0.0.pre.beta.4 → 1.0.0.pre.beta.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2907e41b969e077bc2ac2cee703ff8bef61d730b
4
- data.tar.gz: 2909f0be3908981a8828c72ddee7b840471bc9f0
3
+ metadata.gz: b9b94ed6017c63dc743846f6d9e5b4c3b9d6da7b
4
+ data.tar.gz: 9201e3b59f82f4aed6ed2cada9af584a1d8020ce
5
5
  SHA512:
6
- metadata.gz: fc91f97a7303f5c3bb7bca558568b933a8a2f514a6efe5d3a29a6e20d59eed3b27d14139ee574587aae3cc31ae95f30c068d31cd67d263323992a061493e49f2
7
- data.tar.gz: fd7b48f9acc7b0be07f8fc3f2205d3dd42709d0bc40be0d310b4258174a69fe32bcdac404a61a92e6c985e18826c16d3c905580dd8c792f56c9755f1a07dd315
6
+ metadata.gz: e4703e32cf99f90adf493ebba8c33a071a509c8547cec75ef0ab81325bf91c4a3b1bee99d5422cc999e0648d0232d5265e0796c699febf48209323a81e35b274
7
+ data.tar.gz: 8185cb8a8ba40fec997636aa875967c3b3bdc7efa8959fa200f2103f9cad90867d45b0312c1888af0e2df51b6d18f5373e8eb601a5c9064285ba986c36182949
@@ -26,16 +26,28 @@ module Convection
26
26
  property :record_type, 'Type'
27
27
  property :weight, 'Weight'
28
28
 
29
- def alias_target(&block)
30
- a = ResourceProperty::Route53AliasTarget.new(self)
31
- a.instance_exec(&block) if block
32
- properties['AliasTarget'].set(a)
29
+ def alias_target(tgt = nil, &block)
30
+ if tgt
31
+ # Maintain backwards compatability
32
+ alias_tgt tgt
33
+ else
34
+ # Add new resource_property functionality
35
+ a = ResourceProperty::Route53AliasTarget.new(self)
36
+ a.instance_exec(&block) if block
37
+ properties['AliasTarget'].set(a)
38
+ end
33
39
  end
34
40
 
35
- def geo_location(&block)
36
- g = ResourceProperty::Route53GeoLocation.new(self)
37
- g.instance_exec(&block) if block
38
- properties['GeoLocation'].set(g)
41
+ def geo_location(geo = nil, &block)
42
+ if geo
43
+ # Maintain backwards compatability
44
+ geo_loc geo
45
+ else
46
+ # Add new resource_property functionality
47
+ g = ResourceProperty::Route53GeoLocation.new(self)
48
+ g.instance_exec(&block) if block
49
+ properties['GeoLocation'].set(g)
50
+ end
39
51
  end
40
52
  end
41
53
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: convection
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.pre.beta.4
4
+ version: 1.0.0.pre.beta.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Manero