elasticsearch-drain 0.1.17 → 0.1.18
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/.ruby-version +1 -0
- data/lib/elasticsearch/drain/node.rb +4 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 07ae3b4a6bb377e9683a62e8053b01b72d0d26a9e4aeef977cabf12642d46a85
|
|
4
|
+
data.tar.gz: 6ea43a33c74b41e35405b3eaf636c18281af547fb11179110ac82436b908ab7e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ff79b6e90b309aec0176094d00361029663c3c922164e662a9560e5faddd463095ecab9ec694914098216e8866bb9015ad5551d4e4a74c745e5744981af116df
|
|
7
|
+
data.tar.gz: f5f8ff84e9e4cd6452e2ac0186b82b7ff9811fd5e05dd7907c56efcdfa6fdf5011812aede95258dbbcb4c2df52f5137c809700513f5864ef36570be63a0a08c6
|
data/.ruby-version
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.3.0
|
|
@@ -97,7 +97,10 @@ module Elasticsearch
|
|
|
97
97
|
end
|
|
98
98
|
|
|
99
99
|
def in_recovery?
|
|
100
|
-
recovery = client.cat.recovery(format: 'json', v: true)
|
|
100
|
+
recovery = client.cat.recovery(format: 'json', v: true)
|
|
101
|
+
if recovery.first != nil
|
|
102
|
+
recovery = recovery.first.values
|
|
103
|
+
end
|
|
101
104
|
[hostname, name].any? { |a| recovery.include?(a) }
|
|
102
105
|
end
|
|
103
106
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: elasticsearch-drain
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.18
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Andrew Thompson
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2021-03-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -92,6 +92,7 @@ files:
|
|
|
92
92
|
- ".gitignore"
|
|
93
93
|
- ".rubocop.yml"
|
|
94
94
|
- ".rubocop_todo.yml"
|
|
95
|
+
- ".ruby-version"
|
|
95
96
|
- ".travis.yml"
|
|
96
97
|
- Gemfile
|
|
97
98
|
- Gemfile.lock
|
|
@@ -141,8 +142,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
141
142
|
- !ruby/object:Gem::Version
|
|
142
143
|
version: '0'
|
|
143
144
|
requirements: []
|
|
144
|
-
|
|
145
|
-
rubygems_version: 2.7.7
|
|
145
|
+
rubygems_version: 3.2.14
|
|
146
146
|
signing_key:
|
|
147
147
|
specification_version: 4
|
|
148
148
|
summary: Elasticsearch node replacement utility that tries to keep the cluster healthy
|