secure_data_bag 2.0.2 → 2.0.3
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/secure_bag_show.rb +8 -2
- data/lib/secure_data_bag/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 03bea22a26f5707bb2e832e2e6730b9577845516
|
4
|
+
data.tar.gz: 9a5d1c8424a9a04881ef3213fc7adca512bf7155
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c05a4d7fd6141c3eec07aab8961dd11d615e23954c3ebec962df31a460beea95ee5b013686d69539a2675bf3d9114e09e35b7ecac433c3eae3550bd09d226e9
|
7
|
+
data.tar.gz: ae8491d7e9aab25c074dfbc2273b18afc6a3f3a640e580f6a3ec6a70f694c6a6e574d5e41f7e8e27d753d5b87d5d1cdeef65fbde55af20fa40b2b3d648d7effc
|
@@ -9,6 +9,12 @@ class Chef
|
|
9
9
|
|
10
10
|
banner "knife secure bag show BAG [ITEM] (options)"
|
11
11
|
category "secure bag"
|
12
|
+
|
13
|
+
option :encoded,
|
14
|
+
long: "--encoded",
|
15
|
+
boolean: true,
|
16
|
+
description: "Whether we wish to display encoded values",
|
17
|
+
default: false
|
12
18
|
|
13
19
|
def load_item(bag, item_name)
|
14
20
|
item = SecureDataBag::Item.load(
|
@@ -18,8 +24,8 @@ class Chef
|
|
18
24
|
)
|
19
25
|
item.encoded_fields(encoded_fields)
|
20
26
|
|
21
|
-
data = item.to_hash(encoded:
|
22
|
-
data = data_for_edit(data)
|
27
|
+
data = item.to_hash(encoded:config[:encoded])
|
28
|
+
data = data_for_edit(data) unless config[:encoded]
|
23
29
|
data
|
24
30
|
end
|
25
31
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: secure_data_bag
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Serafini
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-09-
|
11
|
+
date: 2014-09-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chef
|