elasticsearch_s3_backup 1.1.6 → 1.1.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b6e94e643cfd218b8f464af384c52c8d288d9a37
4
- data.tar.gz: 0e13d30338ecdc3788585e9e685518c1567ee0c3
3
+ metadata.gz: e09ae5a183e12bb57d5b01c239da60a2f6c850c6
4
+ data.tar.gz: ce67f4d07040c8515311d3078ad051cf2250330a
5
5
  SHA512:
6
- metadata.gz: fc46614a1416daddf7bac053508a37f96406953fd0e886481cccca208b6cf52eedfd317cab888b31971624d308656d7f696511874bedacf6917862e929faf1bf
7
- data.tar.gz: ec7244731c76b38b27019610cfc4fe1a79eb84143a2739d87f0ac8e47faf5f69c04dec0a25f77d1cb958da14a3b181794f79804932c3fcadbfef66087ff0129e
6
+ metadata.gz: df87695bcc6259e43c247f639732ff4bc6def6373426dcef3e3eab81daf701a7e35350375d52f5638215781cba2103e4b4ac338e1cd8d46de726853c868479c4
7
+ data.tar.gz: 0fb979a4afcb32a1b01f29a3a36e4f658f631e236d0465520f9ed89bc5878ec4bc57ad2227063bad935d31771efc3672c74a228a7747c76e1e8da014736119bb
@@ -97,17 +97,17 @@ module EverTools
97
97
  end
98
98
 
99
99
  def create_repo
100
- new_repo_params = new_repo_params.merge(
101
- type: 's3',
102
- settings: {
103
- base_path: "/elasticsearch/#{cluster_name}/#{conf['env']}/#{backup_repo}",
104
- server_side_encryption: true
100
+ logger.info 'Creating a new monthly ES backup repo…'
101
+ es_api.snapshot.create_repository(
102
+ repository: backup_repo,
103
+ body: {
104
+ type: 's3',
105
+ settings: new_repo_params.merge(
106
+ base_path: "/elasticsearch/#{cluster_name}/#{conf['env']}/#{backup_repo}",
107
+ server_side_encryption: true
108
+ )
105
109
  }
106
110
  )
107
-
108
- logger.info 'Creating a new monthly ES backup repo…'
109
- es_api.snapshot.create_repository repository: backup_repo,
110
- body: new_repo_params
111
111
  end
112
112
 
113
113
  def valid_date?(date)
@@ -1,5 +1,5 @@
1
1
  module EverTools
2
2
  class ElasticsearchS3Backup
3
- VERSION = '1.1.6'
3
+ VERSION = '1.1.7'
4
4
  end
5
5
  end
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.1.6
4
+ version: 1.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Herot
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-08-28 00:00:00.000000000 Z
11
+ date: 2015-09-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler