knife-uploader 0.2.2 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/chef/knife/uploader_base.rb +2 -4
- data/lib/chef/knife/uploader_data_bag.rb +0 -10
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dc52a66d8a055b73673f4c6e6f78625cb98dcb6c
|
4
|
+
data.tar.gz: 900b14fa63e8f61f8ccfa9a90c284af0d47a6da8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 320b161c6c84e1069bce5eaf7f3a2c6e6b279b19dfe0610cdaa20d8f31d84eec5e97de4f873d6a7a19cb39d74a7f9bf2a7549140c85f7c00d5bf640231cf2afe
|
7
|
+
data.tar.gz: 068faafc3c9cff565defd5b0ea7153597d025677543cc61d949125c44a674a0cf1b22def248da32fc46f3b16839158bd24d990e7fb2c8f58382db9a646a267d4
|
@@ -195,11 +195,9 @@ module KnifeUploader
|
|
195
195
|
raise "File #{knife_conf_path} does not exist" unless File.file?(knife_conf_path)
|
196
196
|
|
197
197
|
@ridley = Ridley.from_chef_config(knife_conf_path, :ssl => { :verify => false })
|
198
|
-
data_bag_secret_file_path =
|
199
|
-
config[:secret_file] || @ridley.options[:encrypted_data_bag_secret]
|
198
|
+
data_bag_secret_file_path = @ridley.options[:encrypted_data_bag_secret]
|
200
199
|
unless data_bag_secret_file_path
|
201
|
-
raise "No encrypted data bag secret location specified
|
202
|
-
"--secret-file or with encrypted_data_bag_secret in #{knife_conf_path}"
|
200
|
+
raise "No encrypted data bag secret location specified in #{knife_conf_path}"
|
203
201
|
end
|
204
202
|
|
205
203
|
unless File.file?(data_bag_secret_file_path)
|
@@ -220,11 +220,6 @@ module KnifeUploader
|
|
220
220
|
|
221
221
|
include BaseCommandMixin
|
222
222
|
|
223
|
-
# TODO: can this be moved to a module shared between data bag upload and diff commands?
|
224
|
-
option :secret_file,
|
225
|
-
long: "--secret-file SECRET_FILE",
|
226
|
-
description: 'A file containing the secret key to use to encrypt data bag item values'
|
227
|
-
|
228
223
|
banner 'knife uploader data bag diff BAG [BAG2]'
|
229
224
|
|
230
225
|
def diff_data_bag_item_files(bag_name1, bag_name2)
|
@@ -297,11 +292,6 @@ module KnifeUploader
|
|
297
292
|
class UploaderDataBagUpload < UploaderDataBagCommand
|
298
293
|
include BaseCommandMixin
|
299
294
|
|
300
|
-
# TODO: can this be moved to a module shared between data bag upload and diff commands?
|
301
|
-
option :secret_file,
|
302
|
-
long: "--secret-file SECRET_FILE",
|
303
|
-
description: 'A file containing the secret key to use to encrypt data bag item values'
|
304
|
-
|
305
295
|
banner 'knife uploader data bag upload BAG'
|
306
296
|
|
307
297
|
def run_internal
|
metadata
CHANGED
@@ -1,27 +1,27 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: knife-uploader
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mikhail Bautin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-02-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chef
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '11.4'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '11.4'
|
27
27
|
- !ruby/object:Gem::Dependency
|
@@ -155,7 +155,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
155
155
|
version: '0'
|
156
156
|
requirements: []
|
157
157
|
rubyforge_project:
|
158
|
-
rubygems_version: 2.4.
|
158
|
+
rubygems_version: 2.4.3
|
159
159
|
signing_key:
|
160
160
|
specification_version: 4
|
161
161
|
summary: Knife plugin for better uploading of data bags and run lists to Chef Server
|