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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1db331e4f7b6371e4859fa1660ca52a1e75b794c
4
- data.tar.gz: 1ca566d423cf74afaea476cbe2fb9812b4d8ef68
3
+ metadata.gz: c923edcfecd98d6c029f011fc30d1b5d3123e124
4
+ data.tar.gz: 609b3431923b5e221557a60150deb60ce752b225
5
5
  SHA512:
6
- metadata.gz: 4e4f6d38f2b01a20de2ed222005b1f3af29a6fa751761d5e0b0d7b27083db5188587740fa65266b75fa0ba95899c883fdec7b4b5399fa216536d699485d8bc45
7
- data.tar.gz: 4a6aac5157b4a9952416524b6bbbafb38b3d90fc8ca8723ec269ed0c35a290289ae2365f358a7f176c783800e7c037f8d468030c02c24e8a66b1244d10bd3ddd
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}.","CNAME","60",[local_ip], zone)
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("CNAME").select {|r| r.name =~ /#{update_hostname}/ }.first
37
+ @record ||= zone.get_records("A").select {|r| r.name =~ /#{update_hostname}/ }.first
38
38
  end
39
39
 
40
40
  def zone
@@ -1,3 +1,3 @@
1
1
  module Dynamic53
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
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.2
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-01 00:00:00.000000000 Z
11
+ date: 2014-05-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: route53