cloudflare-dns-update 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/README.md +8 -0
- data/bin/cloudflare-dns-update +2 -2
- data/cloudflare-dns-update.gemspec +2 -2
- data/lib/cloudflare/dns/update.rb +1 -1
- data/lib/cloudflare/dns/update/version.rb +2 -2
- metadata +9 -10
- data/cloudflare-dns.yml +0 -32
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dc6cf5b1dd89ee55d1687e17238998aa502ef012
|
4
|
+
data.tar.gz: f737e3a7f23efb42ede7b9b78d78ae6cc8b47f0e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a0700a12dd7208fc4a15851b7253ababcd3110601cbd579021779312f45ac6cbeed39d656876ddf3b61e1c838838f59128d9159b1506644ff4fa13395450dd5
|
7
|
+
data.tar.gz: a9d64a979cbcc427ec86692e4c3d00aa85d2f9c89a1259c0d87028018e746a156eabbb8233ba525ef079090b20cb49a2ed7c22a3c69f52f7d7b5fe4ec9bff6c4
|
data/README.md
CHANGED
@@ -12,6 +12,14 @@ Install it yourself as:
|
|
12
12
|
|
13
13
|
Run the included `cloudflare-dns-update` tool and you will be walked through the configuration process. You might want to specify a specific configuration file, using the `--configuration /path/to/configuration.yml` option.
|
14
14
|
|
15
|
+
### Daily updates using CRON
|
16
|
+
|
17
|
+
Simply set up configurations for each domain you wish to update, and add to `/etc/cron.daily/dyndns`, e.g.:
|
18
|
+
|
19
|
+
#!/usr/bin/env sh
|
20
|
+
|
21
|
+
cloudflare-dns-update --configuration /srv/dyndns/hinoki.oriontransfer.co.nz.yml
|
22
|
+
|
15
23
|
## Contributing
|
16
24
|
|
17
25
|
1. Fork it
|
data/bin/cloudflare-dns-update
CHANGED
@@ -36,12 +36,12 @@ def check_result(result, success_message = 'Finished.')
|
|
36
36
|
end
|
37
37
|
|
38
38
|
def get_input(message)
|
39
|
-
$stdout.write(message)
|
39
|
+
$stdout.write(message + ' ')
|
40
40
|
gets.chomp
|
41
41
|
end
|
42
42
|
|
43
43
|
def run(*command)
|
44
|
-
puts "Running command #{command.
|
44
|
+
puts "Running command #{command.join(' ')}"
|
45
45
|
|
46
46
|
IO.popen(*command) do |io|
|
47
47
|
return io.read.chomp
|
@@ -25,6 +25,6 @@ Gem::Specification.new do |spec|
|
|
25
25
|
spec.add_development_dependency "bundler", "~> 1.3"
|
26
26
|
spec.add_development_dependency "rake"
|
27
27
|
|
28
|
-
spec.add_dependency "trollop"
|
29
|
-
spec.add_dependency "cloudflare"
|
28
|
+
spec.add_dependency "trollop", "~> 2.0.0"
|
29
|
+
spec.add_dependency "cloudflare", "~> 1.1.3"
|
30
30
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cloudflare-dns-update
|
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
|
- Samuel Williams
|
@@ -42,30 +42,30 @@ dependencies:
|
|
42
42
|
name: trollop
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ~>
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 2.0.0
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ~>
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 2.0.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: cloudflare
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ~>
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: 1.1.3
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ~>
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
68
|
+
version: 1.1.3
|
69
69
|
description: "\tProvides a client tool for updating CloudFlare records, with a specific\n\temphasis
|
70
70
|
on updating IP addresses for domain records. This provides\n\tdyndns-like functionality.\n"
|
71
71
|
email:
|
@@ -81,7 +81,6 @@ files:
|
|
81
81
|
- Rakefile
|
82
82
|
- bin/cloudflare-dns-update
|
83
83
|
- cloudflare-dns-update.gemspec
|
84
|
-
- cloudflare-dns.yml
|
85
84
|
- lib/cloudflare/dns/update.rb
|
86
85
|
- lib/cloudflare/dns/update/version.rb
|
87
86
|
homepage: ''
|
data/cloudflare-dns.yml
DELETED
@@ -1,32 +0,0 @@
|
|
1
|
-
---
|
2
|
-
:key: e949a982e76093acbcd21277fcd3915e25163
|
3
|
-
:email: samuel@oriontransfer.org
|
4
|
-
:zone: oriontransfer.co.nz
|
5
|
-
:domain:
|
6
|
-
rec_id: '23414485'
|
7
|
-
rec_tag: 6978e0f1c24639abffb1d23a84ecb102
|
8
|
-
zone_name: oriontransfer.co.nz
|
9
|
-
name: hinoki.oriontransfer.co.nz
|
10
|
-
display_name: hinoki
|
11
|
-
type: A
|
12
|
-
prio:
|
13
|
-
content: 111.69.246.106
|
14
|
-
display_content: 111.69.246.106
|
15
|
-
ttl: '7200'
|
16
|
-
ttl_ceil: 86400
|
17
|
-
ssl_id:
|
18
|
-
ssl_status:
|
19
|
-
ssl_expires_on:
|
20
|
-
auto_ttl: 0
|
21
|
-
service_mode: '0'
|
22
|
-
props:
|
23
|
-
proxiable: 1
|
24
|
-
cloud_on: 0
|
25
|
-
cf_open: 1
|
26
|
-
ssl: 0
|
27
|
-
expired_ssl: 0
|
28
|
-
expiring_ssl: 0
|
29
|
-
pending_ssl: 0
|
30
|
-
vanity_lock: 0
|
31
|
-
:content: 111.69.238.117
|
32
|
-
:content_command: curl ipinfo.io/ip
|