roadworker 0.5.9.beta4 → 0.5.9.beta5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/roadworker/client.rb +3 -3
- data/lib/roadworker/route53-wrapper.rb +4 -0
- data/lib/roadworker/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: d74f6860010879a7fbd98866c9ff2915a8b392a7
|
4
|
+
data.tar.gz: 4a46f9a63ff010a97f613168d51116c9d79341b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 30198c307930eb489d90138ecb6f8ea012940a26db4905f38e1e1982e452627a8003bd161dc55292f200a13ff494ce5b9521a21200dfcef4fb779c8510132159
|
7
|
+
data.tar.gz: 9335b7bf22ce6bc0e918e9763bd565017f9d7c89f44dce1ea2a40c0c9871c657ec24c80b4f9966965403fa55f3df45631427915f46f7a83966bb8818ecd583e8
|
data/lib/roadworker/client.rb
CHANGED
@@ -63,8 +63,8 @@ module Roadworker
|
|
63
63
|
end
|
64
64
|
|
65
65
|
def walk_hosted_zones(dsl)
|
66
|
-
expected = collection_to_hash(dsl.hosted_zones) {|i| [normalize_name(i.name), i.vpcs.map(&:vpc_id)] }
|
67
|
-
actual = collection_to_hash(@route53.hosted_zones) {|i| [normalize_name(i.name), i.vpcs.map(&:vpc_id)] }
|
66
|
+
expected = collection_to_hash(dsl.hosted_zones) {|i| [normalize_name(i.name), i.vpcs.map(&:vpc_id).sort] }
|
67
|
+
actual = collection_to_hash(@route53.hosted_zones) {|i| [normalize_name(i.name), i.vpcs.map(&:vpc_id).sort] }
|
68
68
|
|
69
69
|
expected.each do |keys, expected_zone|
|
70
70
|
name = keys[0]
|
@@ -143,7 +143,7 @@ module Roadworker
|
|
143
143
|
if expected_zone.ignore_patterns.any? { |pattern| pattern === name }
|
144
144
|
next
|
145
145
|
end
|
146
|
-
|
146
|
+
|
147
147
|
record.delete
|
148
148
|
end
|
149
149
|
end
|
@@ -218,6 +218,10 @@ module Roadworker
|
|
218
218
|
actual = actual.sort_by {|i| i.to_s } if actual.kind_of?(Array)
|
219
219
|
actual = nil if actual.kind_of?(Array) && actual.empty?
|
220
220
|
|
221
|
+
if attribute == :geo_location and actual
|
222
|
+
actual = Hash[actual.each_pair.select {|k, v| not v.nil? }]
|
223
|
+
end
|
224
|
+
|
221
225
|
if !expected and !actual
|
222
226
|
true
|
223
227
|
elsif expected and actual
|
data/lib/roadworker/version.rb
CHANGED