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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6e34de7925e2085889ace31594a9fa4d48c7c331
4
- data.tar.gz: d2b767328cd595de21553d0866aa5b3b49242c4f
3
+ metadata.gz: 6e9615fde7d0bdd27eb81aa2b89e0804ab61febc
4
+ data.tar.gz: 8caef39b07227c52fd28a7ba7f46bcf700871093
5
5
  SHA512:
6
- metadata.gz: 3c1e43d841ff94ba97c6938286ff960e4efbdd9da644c23a702680f66d99908b2534220cebd414738b2c7c5deb7da43b194a4536913c34a9566cb6e5b352aad5
7
- data.tar.gz: f6d477c106f5d50dc10ce1b40aabd30f10fc8634a341947b42e2dc998716b7db899a9ef651a6464c498b59904ba7eadbf553028e3c1883ae9c529347c2174a65
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
- Note that AWS credentials are expected to be provided in the environment variables `AWS_ACCESS_KEY_ID` and
34
- `AWS_SECRET_ACCESS_KEY`. Refer to Amazon Web Services console to create a user with the credentials to make updates
35
- in Route 53.
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
 
@@ -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")
@@ -1,3 +1,3 @@
1
1
  class Dynamic53
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
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.1
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: {}