knife-uploader 0.2.1 → 0.2.2
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/lib/chef/knife/uploader_base.rb +4 -2
- data/lib/chef/knife/uploader_data_bag.rb +10 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9452d3030cdae4e954ee4cfc33094518e50093a1
|
4
|
+
data.tar.gz: 80de6100bd3330cb7d3cd1cd221a702642b73b0a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f497f7e4001d96aff8819227ca48bce8b9b069a97b4e85656eb9e2f63953807c6d4d2f1602f5e15e1883c8ee744115e9ee732463bf7862b2eba29ee89c57dc82
|
7
|
+
data.tar.gz: 0ab68bb9df7917fb2a4e6abf5ca8aa8918616559789b28740e7211ac09cc7827e5c1aac6d39a6291039f9551a6dad6e091c3dbc83c49f92dec216c6082a59d03
|
@@ -195,9 +195,11 @@ 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 =
|
198
|
+
data_bag_secret_file_path =
|
199
|
+
config[:secret_file] || @ridley.options[:encrypted_data_bag_secret]
|
199
200
|
unless data_bag_secret_file_path
|
200
|
-
raise "No encrypted data bag secret location specified
|
201
|
+
raise "No encrypted data bag secret location specified on the command line using " \
|
202
|
+
"--secret-file or with encrypted_data_bag_secret in #{knife_conf_path}"
|
201
203
|
end
|
202
204
|
|
203
205
|
unless File.file?(data_bag_secret_file_path)
|
@@ -220,6 +220,11 @@ 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
|
+
|
223
228
|
banner 'knife uploader data bag diff BAG [BAG2]'
|
224
229
|
|
225
230
|
def diff_data_bag_item_files(bag_name1, bag_name2)
|
@@ -292,6 +297,11 @@ module KnifeUploader
|
|
292
297
|
class UploaderDataBagUpload < UploaderDataBagCommand
|
293
298
|
include BaseCommandMixin
|
294
299
|
|
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
|
+
|
295
305
|
banner 'knife uploader data bag upload BAG'
|
296
306
|
|
297
307
|
def run_internal
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: knife-uploader
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mikhail Bautin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-01-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chef
|
@@ -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.
|
158
|
+
rubygems_version: 2.4.5
|
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
|