dynamic53 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dynamic53/cli.rb +2 -2
- data/lib/dynamic53/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c923edcfecd98d6c029f011fc30d1b5d3123e124
|
4
|
+
data.tar.gz: 609b3431923b5e221557a60150deb60ce752b225
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c428fb4a6057139d9430570f3cf5af9b47212bec1e4b30f04f0d38450e597b4d0e150ad0cd63e1681f0ce1caa143ec11526eaa2b63cc99f5d783b73ebe29741
|
7
|
+
data.tar.gz: 1ee1c5e4063c2dc69ebbe4cd72134ed6ecfde2b349443e1ee50037c41f487acaa24f811b52c6a85ddd4c404b1f1d16e1d54f088dfb348354821a3b07df138ee3
|
data/lib/dynamic53/cli.rb
CHANGED
@@ -25,7 +25,7 @@ module Dynamic53
|
|
25
25
|
private
|
26
26
|
|
27
27
|
def create_record
|
28
|
-
record = Route53::DNSRecord.new("#{update_hostname}.#{hostname}.","
|
28
|
+
record = Route53::DNSRecord.new("#{update_hostname}.#{hostname}.","A","60",[local_ip], zone)
|
29
29
|
record.create
|
30
30
|
end
|
31
31
|
|
@@ -34,7 +34,7 @@ module Dynamic53
|
|
34
34
|
end
|
35
35
|
|
36
36
|
def record
|
37
|
-
@record ||= zone.get_records("
|
37
|
+
@record ||= zone.get_records("A").select {|r| r.name =~ /#{update_hostname}/ }.first
|
38
38
|
end
|
39
39
|
|
40
40
|
def zone
|
data/lib/dynamic53/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dynamic53
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christopher Hein
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-05-
|
11
|
+
date: 2014-05-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: route53
|