mondupe 0.0.39 → 0.0.40
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 +4 -4
- data/lib/mondupe.rb +4 -4
- 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: 5b28fe0bf93dceb8d4c59e7ee7341064253cf40e
|
4
|
+
data.tar.gz: 8d130e158ecc63d85d341e8a9b63021c6552e9a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 132b6190ef0b1960bbc72121d175f2e28aca1a36937287da9b22a34337b4e96acb53db8cbd06975d730eb3d41a5116afb5c3537907f091ed11aae1884f809b00
|
7
|
+
data.tar.gz: 06077a2101bbc07c0adaf46aa78db9fa418c07493089b5c82a9d89ee3911620a2777f1f068739d1aa911844e063c11d471050a9b315f137eb4774cf22b863f80
|
data/lib/mondupe.rb
CHANGED
@@ -78,13 +78,13 @@ class Mondupe
|
|
78
78
|
|
79
79
|
if rrset.exists?
|
80
80
|
# Update if record exists
|
81
|
-
rrset.resource_records = [ { :value => instance.
|
81
|
+
rrset.resource_records = [ { :value => instance.dns_name } ]
|
82
82
|
rrset.update
|
83
|
-
puts "Updated CNAME '#{instance_fqdn}' to point to '#{instance.
|
83
|
+
puts "Updated CNAME '#{instance_fqdn}' to point to '#{instance.dns_name}'"
|
84
84
|
else
|
85
85
|
# Create new record if does not exist
|
86
|
-
rrset = rrsets.create(instance_fqdn, 'CNAME', :ttl => 300, :resource_records => [{:value => instance.
|
87
|
-
puts "Added CNAME '#{instance_fqdn}' pointing to '#{instance.
|
86
|
+
rrset = rrsets.create(instance_fqdn, 'CNAME', :ttl => 300, :resource_records => [{:value => instance.dns_name }])
|
87
|
+
puts "Added CNAME '#{instance_fqdn}' pointing to '#{instance.dns_name}'"
|
88
88
|
end
|
89
89
|
end
|
90
90
|
|