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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 58cc15167a192510c0c42c3670a62549c6facfce
4
- data.tar.gz: bd97d80516b02d36df6df25ebbe517cf52ae894e
3
+ metadata.gz: 03bea22a26f5707bb2e832e2e6730b9577845516
4
+ data.tar.gz: 9a5d1c8424a9a04881ef3213fc7adca512bf7155
5
5
  SHA512:
6
- metadata.gz: e72348c087efe51e3f2da4619cd8d53486fb1a8c3b9d0196ee0248b62f7a8a33bacab809856cf78eaff4ab45f1cfd9a6828668f4cb448dbc7d4a452479afaa77
7
- data.tar.gz: 091e8e0c8c0c065f78666473b8347d34c98cc0e96367808fe51de3551461ddd9253380413e2046e62631626f3b9696e4c56a343ae36852a429638dc510d3d1de
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:false)
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
 
@@ -1,5 +1,5 @@
1
1
 
2
2
  module SecureDataBag
3
- VERSION = "2.0.2"
3
+ VERSION = "2.0.3"
4
4
  end
5
5
 
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.2
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-29 00:00:00.000000000 Z
11
+ date: 2014-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chef