record_store 3.1.4 → 4.0.0
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 +0 -1
- data/Rakefile +0 -1
- data/lib/record_store/cli.rb +0 -17
- data/lib/record_store/record.rb +0 -9
- data/lib/record_store/version.rb +1 -1
- data/template/bin/test +0 -1
- data/template/config.yml +0 -3
- 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: 27444f2a6a94ae153ac609d1d9af8de4983fa83a
|
4
|
+
data.tar.gz: 2912b8103f87b7973347317ad819f545cb0315d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cea447ecaddf9ff5a365ab8618f9158e2e3cf72e7ca1666fcb93e18998fb4ff6678bc05c91156cba60b386cf7dc16c486f9f56a7ad358081f32ae334cf548336
|
7
|
+
data.tar.gz: 751d3dc5034b23097d83bbe1fc0122b880628b1ba0fcdd99feb7c21c8a4cd91d68caf07f3a67e71f9e95205672ff5c9d8d4ff3b92bbf240d92d7d7ffbf5315a6
|
data/README.md
CHANGED
@@ -15,7 +15,6 @@ record-store list # Lists out records in YAML zonefiles
|
|
15
15
|
record-store secrets # Decrypts DynECT credentials
|
16
16
|
record-store sort -n, --name=NAME # Sorts the zonefile alphabetically e.g. record-store sort --name=shopify.io
|
17
17
|
record-store thaw # Thaws all zones under management to allow manual edits
|
18
|
-
record-store validate_all_present # Validates that all the zones that are expected are defined
|
19
18
|
record-store validate_change_size # Validates no more then particular limit of DNS records are removed per zone at a time
|
20
19
|
record-store validate_initial_state # Validates state hasn't diverged since the last deploy
|
21
20
|
record-store validate_records # Validates that all DNS records have valid definitions
|
data/Rakefile
CHANGED
data/lib/record_store/cli.rb
CHANGED
@@ -228,23 +228,6 @@ module RecordStore
|
|
228
228
|
end
|
229
229
|
end
|
230
230
|
|
231
|
-
desc 'validate_all_present', 'Validates that all the zones that are expected are defined'
|
232
|
-
def validate_all_present
|
233
|
-
defined_zones = Set.new(RecordStore.defined_zones)
|
234
|
-
expected_zones = Set.new(RecordStore.expected_zones)
|
235
|
-
|
236
|
-
missing_zones = expected_zones - defined_zones
|
237
|
-
extra_zones = defined_zones - expected_zones
|
238
|
-
|
239
|
-
unless missing_zones.empty?
|
240
|
-
abort "The following zones are missing: #{missing_zones.to_a.join(', ')}"
|
241
|
-
end
|
242
|
-
|
243
|
-
unless extra_zones.empty?
|
244
|
-
abort "The following unexpected zones are defined: #{extra_zones.to_a.join(', ')}"
|
245
|
-
end
|
246
|
-
end
|
247
|
-
|
248
231
|
SKIP_CHECKS = 'SKIP_DEPLOY_VALIDATIONS'
|
249
232
|
desc 'validate_initial_state', "Validates state hasn't diverged since the last deploy"
|
250
233
|
def validate_initial_state
|
data/lib/record_store/record.rb
CHANGED
@@ -19,15 +19,6 @@ module RecordStore
|
|
19
19
|
|
20
20
|
def self.build_from_yaml_definition(yaml_definition)
|
21
21
|
record_type = yaml_definition.fetch(:type)
|
22
|
-
|
23
|
-
# TODO: remove backward compatibility support for ALIAS records using cname attribute instead of alias
|
24
|
-
# REMOVE after merging https://github.com/Shopify/record-store/pull/781
|
25
|
-
case record_type
|
26
|
-
when 'ALIAS'
|
27
|
-
if yaml_definition.key?(:cname)
|
28
|
-
yaml_definition[:alias] = yaml_definition.delete(:cname)
|
29
|
-
end
|
30
|
-
end
|
31
22
|
Record.const_get(record_type).new(yaml_definition)
|
32
23
|
end
|
33
24
|
|
data/lib/record_store/version.rb
CHANGED
data/template/bin/test
CHANGED
data/template/config.yml
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: record_store
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 4.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Willem van Bergen
|
@@ -267,7 +267,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
267
267
|
version: '0'
|
268
268
|
requirements: []
|
269
269
|
rubyforge_project:
|
270
|
-
rubygems_version: 2.
|
270
|
+
rubygems_version: 2.6.7
|
271
271
|
signing_key:
|
272
272
|
specification_version: 4
|
273
273
|
summary: Manage DNS using git
|