record_store 0.3.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +3 -9
- data/Gemfile +19 -2
- data/Gemfile.lock +178 -0
- data/{LICENSE.txt → LICENSE} +5 -5
- data/README.md +131 -44
- data/Rakefile +18 -1
- data/bin/record-store +7 -0
- data/bin/setup +8 -2
- data/bin/test +5 -0
- data/circle.yml +8 -0
- data/lib/record_store.rb +48 -104
- data/lib/record_store/changeset.rb +85 -0
- data/lib/record_store/cli.rb +255 -0
- data/lib/record_store/provider.rb +102 -0
- data/lib/record_store/provider/dnsimple.rb +158 -0
- data/lib/record_store/provider/dynect.rb +97 -0
- data/lib/record_store/record.rb +70 -0
- data/lib/record_store/record/a.rb +32 -0
- data/lib/record_store/record/aaaa.rb +32 -0
- data/lib/record_store/record/alias.rb +20 -0
- data/lib/record_store/record/cname.rb +20 -0
- data/lib/record_store/record/mx.rb +25 -0
- data/lib/record_store/record/ns.rb +20 -0
- data/lib/record_store/record/spf.rb +20 -0
- data/lib/record_store/record/srv.rb +27 -0
- data/lib/record_store/record/txt.rb +29 -0
- data/lib/record_store/version.rb +3 -0
- data/lib/record_store/zone.rb +193 -0
- data/lib/record_store/zone/config.rb +24 -0
- data/record_store.gemspec +30 -14
- data/template/Gemfile +3 -0
- data/template/bin/record-store +7 -0
- data/template/bin/setup +3 -0
- data/template/bin/test +5 -0
- data/template/config.yml +5 -0
- data/template/secrets.json +11 -0
- data/template/zones/dnsimple.example.com.yml +37 -0
- data/template/zones/dynect.example.com.yml +37 -0
- metadata +208 -22
- data/.travis.yml +0 -3
- data/bin/console +0 -14
data/template/Gemfile
ADDED
data/template/bin/setup
ADDED
data/template/bin/test
ADDED
data/template/config.yml
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
dnsimple.example.com:
|
2
|
+
config:
|
3
|
+
provider: DNSimple
|
4
|
+
ignore_patterns:
|
5
|
+
- type: NS
|
6
|
+
fqdn: dnsimple.example.com.
|
7
|
+
|
8
|
+
records:
|
9
|
+
- type: NS
|
10
|
+
fqdn: dnsimple.example.com.
|
11
|
+
ttl: 3600
|
12
|
+
nsdname: ns1.dnsimple.com.
|
13
|
+
- type: NS
|
14
|
+
fqdn: dnsimple.example.com.
|
15
|
+
ttl: 3600
|
16
|
+
nsdname: ns2.dnsimple.com.
|
17
|
+
- type: NS
|
18
|
+
fqdn: dnsimple.example.com.
|
19
|
+
ttl: 3600
|
20
|
+
nsdname: ns3.dnsimple.com.
|
21
|
+
- type: NS
|
22
|
+
fqdn: dnsimple.example.com.
|
23
|
+
ttl: 3600
|
24
|
+
nsdname: ns4.dnsimple.com.
|
25
|
+
|
26
|
+
- type: A
|
27
|
+
fqdn: a-record.dnsimple.example.com.
|
28
|
+
address: 10.10.10.42
|
29
|
+
ttl: 86400
|
30
|
+
- type: TXT
|
31
|
+
fqdn: ping.dnsimple.example.com.
|
32
|
+
txtdata: pong
|
33
|
+
ttl: 300
|
34
|
+
- type: TXT
|
35
|
+
fqdn: marco.dnsimple.example.com.
|
36
|
+
txtdata: polo
|
37
|
+
ttl: 300
|
@@ -0,0 +1,37 @@
|
|
1
|
+
dynect.example.com:
|
2
|
+
config:
|
3
|
+
provider: DynECT
|
4
|
+
ignore_patterns:
|
5
|
+
- type: NS
|
6
|
+
fqdn: dynect.example.com.
|
7
|
+
|
8
|
+
records:
|
9
|
+
- type: NS
|
10
|
+
fqdn: dynect.example.com.
|
11
|
+
ttl: 86400
|
12
|
+
nsdname: ns1.p19.dynect.net.
|
13
|
+
- type: NS
|
14
|
+
fqdn: dynect.example.com.
|
15
|
+
ttl: 86400
|
16
|
+
nsdname: ns2.p19.dynect.net.
|
17
|
+
- type: NS
|
18
|
+
fqdn: dynect.example.com.
|
19
|
+
ttl: 86400
|
20
|
+
nsdname: ns3.p19.dynect.net.
|
21
|
+
- type: NS
|
22
|
+
fqdn: dynect.example.com.
|
23
|
+
ttl: 86400
|
24
|
+
nsdname: ns4.p19.dynect.net.
|
25
|
+
|
26
|
+
- type: A
|
27
|
+
fqdn: a-record.dynect.example.com.
|
28
|
+
address: 10.10.10.42
|
29
|
+
ttl: 86400
|
30
|
+
- type: TXT
|
31
|
+
fqdn: ping.dynect.example.com.
|
32
|
+
txtdata: pong
|
33
|
+
ttl: 300
|
34
|
+
- type: TXT
|
35
|
+
fqdn: marco.dynect.example.com.
|
36
|
+
txtdata: polo
|
37
|
+
ttl: 300
|
metadata
CHANGED
@@ -1,61 +1,247 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: record_store
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- Willem van Bergen
|
8
|
+
- Emil Stolarsky
|
8
9
|
autorequire:
|
9
|
-
bindir:
|
10
|
+
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date:
|
12
|
+
date: 2016-07-12 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
15
|
+
name: thor
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - ">="
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: '0'
|
21
|
+
type: :runtime
|
22
|
+
prerelease: false
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - ">="
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: '0'
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: activesupport
|
15
30
|
requirement: !ruby/object:Gem::Requirement
|
16
31
|
requirements:
|
17
32
|
- - "~>"
|
18
33
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
20
|
-
type: :
|
34
|
+
version: '4.2'
|
35
|
+
type: :runtime
|
21
36
|
prerelease: false
|
22
37
|
version_requirements: !ruby/object:Gem::Requirement
|
23
38
|
requirements:
|
24
39
|
- - "~>"
|
25
40
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
41
|
+
version: '4.2'
|
27
42
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
43
|
+
name: activemodel
|
29
44
|
requirement: !ruby/object:Gem::Requirement
|
30
45
|
requirements:
|
31
46
|
- - "~>"
|
32
47
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
34
|
-
type: :
|
48
|
+
version: '4.2'
|
49
|
+
type: :runtime
|
35
50
|
prerelease: false
|
36
51
|
version_requirements: !ruby/object:Gem::Requirement
|
37
52
|
requirements:
|
38
53
|
- - "~>"
|
39
54
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
41
|
-
|
55
|
+
version: '4.2'
|
56
|
+
- !ruby/object:Gem::Dependency
|
57
|
+
name: fog
|
58
|
+
requirement: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - ">="
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '0'
|
63
|
+
type: :runtime
|
64
|
+
prerelease: false
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - ">="
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: fog-json
|
72
|
+
requirement: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - ">="
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
77
|
+
type: :runtime
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - ">="
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '0'
|
84
|
+
- !ruby/object:Gem::Dependency
|
85
|
+
name: fog-xml
|
86
|
+
requirement: !ruby/object:Gem::Requirement
|
87
|
+
requirements:
|
88
|
+
- - ">="
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: '0'
|
91
|
+
type: :runtime
|
92
|
+
prerelease: false
|
93
|
+
version_requirements: !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - ">="
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: '0'
|
98
|
+
- !ruby/object:Gem::Dependency
|
99
|
+
name: fog-dynect
|
100
|
+
requirement: !ruby/object:Gem::Requirement
|
101
|
+
requirements:
|
102
|
+
- - ">="
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
version: '0'
|
105
|
+
type: :runtime
|
106
|
+
prerelease: false
|
107
|
+
version_requirements: !ruby/object:Gem::Requirement
|
108
|
+
requirements:
|
109
|
+
- - ">="
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
version: '0'
|
112
|
+
- !ruby/object:Gem::Dependency
|
113
|
+
name: ejson
|
114
|
+
requirement: !ruby/object:Gem::Requirement
|
115
|
+
requirements:
|
116
|
+
- - ">="
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: '0'
|
119
|
+
type: :runtime
|
120
|
+
prerelease: false
|
121
|
+
version_requirements: !ruby/object:Gem::Requirement
|
122
|
+
requirements:
|
123
|
+
- - ">="
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '0'
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
name: rake
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
129
|
+
requirements:
|
130
|
+
- - ">="
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
version: '0'
|
133
|
+
type: :development
|
134
|
+
prerelease: false
|
135
|
+
version_requirements: !ruby/object:Gem::Requirement
|
136
|
+
requirements:
|
137
|
+
- - ">="
|
138
|
+
- !ruby/object:Gem::Version
|
139
|
+
version: '0'
|
140
|
+
- !ruby/object:Gem::Dependency
|
141
|
+
name: bundler
|
142
|
+
requirement: !ruby/object:Gem::Requirement
|
143
|
+
requirements:
|
144
|
+
- - ">="
|
145
|
+
- !ruby/object:Gem::Version
|
146
|
+
version: '0'
|
147
|
+
type: :development
|
148
|
+
prerelease: false
|
149
|
+
version_requirements: !ruby/object:Gem::Requirement
|
150
|
+
requirements:
|
151
|
+
- - ">="
|
152
|
+
- !ruby/object:Gem::Version
|
153
|
+
version: '0'
|
154
|
+
- !ruby/object:Gem::Dependency
|
155
|
+
name: mocha
|
156
|
+
requirement: !ruby/object:Gem::Requirement
|
157
|
+
requirements:
|
158
|
+
- - ">="
|
159
|
+
- !ruby/object:Gem::Version
|
160
|
+
version: '0'
|
161
|
+
type: :development
|
162
|
+
prerelease: false
|
163
|
+
version_requirements: !ruby/object:Gem::Requirement
|
164
|
+
requirements:
|
165
|
+
- - ">="
|
166
|
+
- !ruby/object:Gem::Version
|
167
|
+
version: '0'
|
168
|
+
- !ruby/object:Gem::Dependency
|
169
|
+
name: vcr
|
170
|
+
requirement: !ruby/object:Gem::Requirement
|
171
|
+
requirements:
|
172
|
+
- - ">="
|
173
|
+
- !ruby/object:Gem::Version
|
174
|
+
version: '0'
|
175
|
+
type: :development
|
176
|
+
prerelease: false
|
177
|
+
version_requirements: !ruby/object:Gem::Requirement
|
178
|
+
requirements:
|
179
|
+
- - ">="
|
180
|
+
- !ruby/object:Gem::Version
|
181
|
+
version: '0'
|
182
|
+
- !ruby/object:Gem::Dependency
|
183
|
+
name: pry
|
184
|
+
requirement: !ruby/object:Gem::Requirement
|
185
|
+
requirements:
|
186
|
+
- - ">="
|
187
|
+
- !ruby/object:Gem::Version
|
188
|
+
version: '0'
|
189
|
+
type: :development
|
190
|
+
prerelease: false
|
191
|
+
version_requirements: !ruby/object:Gem::Requirement
|
192
|
+
requirements:
|
193
|
+
- - ">="
|
194
|
+
- !ruby/object:Gem::Version
|
195
|
+
version: '0'
|
196
|
+
description: Manage DNS through a git-based workflow. If you're looking for the original
|
197
|
+
'record_store', that has been renamed to 'sequel_record_store'.
|
42
198
|
email:
|
43
|
-
-
|
44
|
-
|
199
|
+
- willem@railsdoctors.com
|
200
|
+
- emil@shopify.com
|
201
|
+
executables:
|
202
|
+
- record-store
|
45
203
|
extensions: []
|
46
204
|
extra_rdoc_files: []
|
47
205
|
files:
|
48
206
|
- ".gitignore"
|
49
|
-
- ".travis.yml"
|
50
207
|
- Gemfile
|
51
|
-
-
|
208
|
+
- Gemfile.lock
|
209
|
+
- LICENSE
|
52
210
|
- README.md
|
53
211
|
- Rakefile
|
54
|
-
- bin/
|
212
|
+
- bin/record-store
|
55
213
|
- bin/setup
|
214
|
+
- bin/test
|
215
|
+
- circle.yml
|
56
216
|
- lib/record_store.rb
|
217
|
+
- lib/record_store/changeset.rb
|
218
|
+
- lib/record_store/cli.rb
|
219
|
+
- lib/record_store/provider.rb
|
220
|
+
- lib/record_store/provider/dnsimple.rb
|
221
|
+
- lib/record_store/provider/dynect.rb
|
222
|
+
- lib/record_store/record.rb
|
223
|
+
- lib/record_store/record/a.rb
|
224
|
+
- lib/record_store/record/aaaa.rb
|
225
|
+
- lib/record_store/record/alias.rb
|
226
|
+
- lib/record_store/record/cname.rb
|
227
|
+
- lib/record_store/record/mx.rb
|
228
|
+
- lib/record_store/record/ns.rb
|
229
|
+
- lib/record_store/record/spf.rb
|
230
|
+
- lib/record_store/record/srv.rb
|
231
|
+
- lib/record_store/record/txt.rb
|
232
|
+
- lib/record_store/version.rb
|
233
|
+
- lib/record_store/zone.rb
|
234
|
+
- lib/record_store/zone/config.rb
|
57
235
|
- record_store.gemspec
|
58
|
-
|
236
|
+
- template/Gemfile
|
237
|
+
- template/bin/record-store
|
238
|
+
- template/bin/setup
|
239
|
+
- template/bin/test
|
240
|
+
- template/config.yml
|
241
|
+
- template/secrets.json
|
242
|
+
- template/zones/dnsimple.example.com.yml
|
243
|
+
- template/zones/dynect.example.com.yml
|
244
|
+
homepage: https://github.com/Shopify/record_store
|
59
245
|
licenses:
|
60
246
|
- MIT
|
61
247
|
metadata: {}
|
@@ -67,7 +253,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
67
253
|
requirements:
|
68
254
|
- - ">="
|
69
255
|
- !ruby/object:Gem::Version
|
70
|
-
version: '0'
|
256
|
+
version: '2.0'
|
71
257
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
72
258
|
requirements:
|
73
259
|
- - ">="
|
@@ -75,8 +261,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
261
|
version: '0'
|
76
262
|
requirements: []
|
77
263
|
rubyforge_project:
|
78
|
-
rubygems_version: 2.
|
264
|
+
rubygems_version: 2.2.5
|
79
265
|
signing_key:
|
80
266
|
specification_version: 4
|
81
|
-
summary:
|
267
|
+
summary: Manage DNS using git
|
82
268
|
test_files: []
|
data/.travis.yml
DELETED
data/bin/console
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require "bundler/setup"
|
4
|
-
require "record_store"
|
5
|
-
|
6
|
-
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
-
# with your gem easier. You can also use a different console, if you like.
|
8
|
-
|
9
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
-
# require "pry"
|
11
|
-
# Pry.start
|
12
|
-
|
13
|
-
require "irb"
|
14
|
-
IRB.start
|