elasticsearch_s3_backup 1.2.0 → 2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bd339d3f1f0ba20c3f4cd7fe8449b6abeda2c567
4
- data.tar.gz: 137eb6de22067e90a6c16467150a41f4c81e7a9a
3
+ metadata.gz: 2105524d46917aa46d271cab57f1ee0358f79abe
4
+ data.tar.gz: 0c0ae0dfe3066aa5e0e36518e7ac8cabadc07535
5
5
  SHA512:
6
- metadata.gz: 07d68a5fc71d49dc27fe888c7d7a0f5a20c5e30390a9c973f0dbd1b2a8234d0104bd873cc31c7d366fb469f050fc75930b2479ab566aa7d96be8d5369d63abef
7
- data.tar.gz: bbec0b79107ce17a9cd4297eb60bc0928e1418c8b48910c90a63a66d17e29dc2d7b0f4244740cf760318d1caf167a87ae44dc3f676527a346291291cc8888851
6
+ metadata.gz: 0ee88a13722edf3aff649fe6ccebd6b4051df379e2d930644f5b3c7c31555435203d97c5e18949bd2435843ab40359b1973d2cccf319db95b30da13b9b490f9e
7
+ data.tar.gz: fba02786fc4e80bba4c1a88aae4c74bfe0f5250754882dd0e06f4ef880d5dc98ef7ad26aa474b2325df13ac8d4cc342c0d66089ffa5297815a9780236464bd89
@@ -1,5 +1,5 @@
1
1
  module EverTools
2
2
  class ElasticsearchS3Backup
3
- VERSION = '1.2.0'
3
+ VERSION = '2.0.0'
4
4
  end
5
5
  end
@@ -18,7 +18,6 @@ module EverTools
18
18
  :new_repo_params,
19
19
  :sentry_dsn,
20
20
  :node_name,
21
- :elasticsearch_auth_file,
22
21
  :cluster_name
23
22
 
24
23
  attr_reader :conf, :backup_repo, :snapshot_label
@@ -60,14 +59,10 @@ module EverTools
60
59
  Raven.capture_exception(e) if sentry_dsn
61
60
  end
62
61
 
63
- def auth
64
- File.read(elasticsearch_auth_file).strip
65
- end
66
-
67
62
  def es_api
68
63
  @es_api ||= begin
69
64
  es_host = @conf['es_host'] || 'localhost'
70
- Elasticsearch::Client.new host: "http://#{auth}@#{es_host}:9200",
65
+ Elasticsearch::Client.new host: "http://#{es_host}:9200",
71
66
  transport_options: {
72
67
  request: {
73
68
  timeout: 1200
@@ -173,11 +168,6 @@ module EverTools
173
168
  [@restore_test_index, @backup_test_index].each do |test_index|
174
169
  es_api.indices.delete index: test_index
175
170
  end
176
- rescue Elasticsearch::Transport::Transport::Errors::Unauthorized
177
- logger.info 'It seems like our auth key expired. Re-create the connection.'
178
- @es_api = nil
179
- tries -= 1
180
- retry if tries >= 0
181
171
  end
182
172
 
183
173
  def cleanup_test_indexes
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elasticsearch_s3_backup
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Herot
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-02-23 00:00:00.000000000 Z
11
+ date: 2016-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -178,7 +178,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
178
178
  version: '0'
179
179
  requirements: []
180
180
  rubyforge_project:
181
- rubygems_version: 2.5.1
181
+ rubygems_version: 2.4.5
182
182
  signing_key:
183
183
  specification_version: 4
184
184
  summary: Backs up ElasticSearch to S3