roadworker 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -4,9 +4,11 @@ Roadworker is a tool to manage Route53.
4
4
 
5
5
  It defines the state of Route53 using DSL, and updates Route53 according to DSL.
6
6
 
7
+ [![Build Status](https://drone.io/bitbucket.org/winebarrel/roadworker/status.png)](https://drone.io/bitbucket.org/winebarrel/roadworker/latest)
8
+
7
9
  **Notice**
8
10
 
9
- * Cannot update TTL of two or more same records (with different SetIdentifier) after creation.
11
+ * Roadworker cannot update TTL of two or more same weighted A records (with different SetIdentifier) after creation.
10
12
 
11
13
  ## Installation
12
14
 
@@ -64,7 +66,7 @@ hosted_zone "info.winebarrel.jp." do
64
66
  rrset "zzz.info.winebarrel.jp", "A" do
65
67
  set_identifier "Primary"
66
68
  failover "PRIMARY"
67
- health_check "http://192.0.43.10:80/path", "example.com"
69
+ health_check "http://192.0.43.10:80/path", :host => "example.com"
68
70
  ttl 456
69
71
  resource_records(
70
72
  "127.0.0.1",
@@ -97,10 +99,15 @@ info.winebarrel.jp. A:
97
99
  actual=127.0.0.1(300),127.0.0.2(300)
98
100
  5 examples, 1 failure
99
101
  ```
100
- ## CI
101
- [drone.io](https://drone.io/bitbucket.org/winebarrel/roadworker)
102
102
 
103
- [![Build Status](https://drone.io/bitbucket.org/winebarrel/roadworker/status.png)](https://drone.io/bitbucket.org/winebarrel/roadworker/latest)
103
+ (Please note test of A(Alias) is not possible to perfection...)
104
+
105
+ ## DNS management using GitHub/Bitbucket
106
+
107
+ ![DNS management using Git](https://cacoo.com/diagrams/geJfslZqd8qne90t-BC7C7.png)
108
+
109
+ * [Bitbucket example repository](https://bitbucket.org/winebarrel/roadworker-example/src)
110
+ * [drone.io example project](https://drone.io/bitbucket.org/winebarrel/roadworker-example/latest)
104
111
 
105
112
  ## Link
106
113
  * [RubyGems.org site](http://rubygems.org/gems/roadworker)
data/bin/roadwork CHANGED
@@ -112,7 +112,6 @@ begin
112
112
  end
113
113
  end
114
114
  when :test
115
- # XXX:
116
115
  unless File.exist?(file)
117
116
  raise "No Routefile found (looking for: #{file})"
118
117
  end
@@ -19,7 +19,6 @@ module Roadworker
19
19
  Converter.convert(hosted_zones)
20
20
  end
21
21
 
22
-
23
22
  def test(dsl, options)
24
23
  Tester.test(dsl, options)
25
24
  end
@@ -117,10 +116,18 @@ module Roadworker
117
116
  @result.failover = value
118
117
  end
119
118
 
120
- def health_check(url, host_name = nil)
119
+ def health_check(url, options = nil)
121
120
  config = HealthCheck.parse_url(url)
122
- config[:fully_qualified_domain_name] = host_name if host_name
123
- @result.health_check = config
121
+
122
+ if options
123
+ if options.kind_of?(Hash)
124
+ config[:fully_qualified_domain_name] = options.fetch(:host)
125
+ else
126
+ config[:fully_qualified_domain_name] = options.to_s
127
+ end
128
+ end
129
+
130
+ @result.health_check = config
124
131
  end
125
132
 
126
133
  def resource_records(*values)
@@ -1,5 +1,5 @@
1
1
  module Roadworker
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
4
4
 
5
5
  Version = Roadworker::VERSION
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: roadworker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-08-01 00:00:00.000000000 Z
12
+ date: 2013-08-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aws-sdk