es_dump_restore 2.2.1 → 2.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/es_dump_restore/app.rb +1 -0
- data/lib/es_dump_restore/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: a4965b79edc9ae5cc1f6eaf0f27199792ee991d9
|
4
|
+
data.tar.gz: 1f061a54c152128037b5510e0ec901ebef0d5799
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b1609965037f9a4e0acf23fa29e3ebcb7c5756d5098e90edd255de74c353eb9823070922fe2e444537120d832bd43c51923c23297d09f881fdf683551c7b8f9
|
7
|
+
data.tar.gz: aa4cc30bf4c3299a4f388b9103e1d043525f27003a8d72cd2286252fdae1c6497ccb42de2980b618b95229aab55d84b4cad5dcf8937abfd41181a253f7b06cda
|
data/CHANGELOG.md
CHANGED
data/lib/es_dump_restore/app.rb
CHANGED
@@ -43,6 +43,7 @@ module EsDumpRestore
|
|
43
43
|
desc "restore_alias URL ALIAS_NAME INDEX_NAME FILENAME", "Restores a dumpfile into the given ElasticSearch index, and then sets the alias to point at that index, removing any existing indexes pointed at by the alias"
|
44
44
|
def restore_alias(url, alias_name, index_name, filename, overrides = nil,
|
45
45
|
batch_size = 1000, exception_retries = 1)
|
46
|
+
exception_retries = exception_retries.to_i
|
46
47
|
client = EsClient.new(url, index_name, nil, exception_retries)
|
47
48
|
client.check_alias alias_name
|
48
49
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: es_dump_restore
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nat Budin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-11-
|
11
|
+
date: 2017-11-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: multi_json
|