dynamic_53 0.0.1 → 0.0.2
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/README.md +25 -3
- data/dynamic_53.gemspec +1 -1
- data/lib/dynamic_53/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: 6e9615fde7d0bdd27eb81aa2b89e0804ab61febc
|
4
|
+
data.tar.gz: 8caef39b07227c52fd28a7ba7f46bcf700871093
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e8de9b61eec7c8471082b8b4bec37b157deda82062de22f194fb14226887b5ce9ca26c0a4728e644a5ee36b1cc1c1f8d29d2d13dd20278fe1bcbbf74d18ac29
|
7
|
+
data.tar.gz: 64dd85d3743353102d04ee3d658922c590fb7e2ad6255634127eac2f7a26a082e6e517ed2e26efc2f40f1207f2fdf0f9176edf752812272838abf8288a13c2fc
|
data/README.md
CHANGED
@@ -24,15 +24,37 @@ Or install it yourself as:
|
|
24
24
|
|
25
25
|
## Usage
|
26
26
|
|
27
|
+
Note that AWS credentials are expected to be provided in the environment variables `AWS_ACCESS_KEY_ID` and
|
28
|
+
`AWS_SECRET_ACCESS_KEY`. Refer to Amazon Web Services console to create a user with the credentials to make updates
|
29
|
+
in Route 53.
|
30
|
+
|
31
|
+
### Command line
|
32
|
+
|
27
33
|
Run the command as following:
|
28
34
|
|
29
35
|
$ dynamic_53 -z example.com. -h dynamic.example.com.
|
30
36
|
|
31
37
|
This will update the host "dynamic.example.com." within the route 53 zone "example.com." with you current IP address.
|
32
38
|
|
33
|
-
|
34
|
-
|
35
|
-
|
39
|
+
$ dynamic_53 --help
|
40
|
+
|
41
|
+
For command line options.
|
42
|
+
|
43
|
+
The task can be set up in a crontab like so, to update hourly:
|
44
|
+
|
45
|
+
```
|
46
|
+
1 * * * * AWS_SECRET_ACCESS_KEY=secret AWS_ACCESS_KEY_ID=key /path/to/bin/dynamic_53 -z example.com. -h hostname.example.com.
|
47
|
+
```
|
48
|
+
|
49
|
+
After installing the gem do `which dynamic_53` to get its full path.
|
50
|
+
|
51
|
+
### From ruby
|
52
|
+
|
53
|
+
```ruby
|
54
|
+
options = {verbose: false}
|
55
|
+
client = Dynamic53.new(zone, hostname, options)
|
56
|
+
client.update # => updates the above zone and hostname with the current machine's public IP address.
|
57
|
+
```
|
36
58
|
|
37
59
|
## Development
|
38
60
|
|
data/dynamic_53.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.email = ["matt.connolly@me.com"]
|
11
11
|
spec.summary = %q{A simple tool to update Amazon Route 53 with based on your current IP Address.}
|
12
12
|
spec.description = %q{A simple tool to update Amazon Route 53 with based on your current IP Address.}
|
13
|
-
spec.homepage = ""
|
13
|
+
spec.homepage = "https://github.com/mattconnolly/dynamic_53"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
16
16
|
spec.files = `git ls-files -z`.split("\x0")
|
data/lib/dynamic_53/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dynamic_53
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Connolly
|
@@ -89,7 +89,7 @@ files:
|
|
89
89
|
- spec/dynamic_53/cli_spec.rb
|
90
90
|
- spec/dynamic_53_spec.rb
|
91
91
|
- spec/spec_helper.rb
|
92
|
-
homepage:
|
92
|
+
homepage: https://github.com/mattconnolly/dynamic_53
|
93
93
|
licenses:
|
94
94
|
- MIT
|
95
95
|
metadata: {}
|