chef-vault 4.1.4 → 4.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/chef-vault +1 -1
- data/lib/chef-vault/item.rb +8 -1
- data/lib/chef-vault/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3dbf90bc269d6b9c3f76c53410d110c12f39fb82d7639c7f330fc44fe908b010
|
4
|
+
data.tar.gz: 01bbe6b31cf4afd76eaaac84abe62ec19d09ce56f8f77e85085c2a8fee0a34da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b10fd270fdbc62c7389eb81bc28426490df2ba0dee4cec0e40f6ff316e4a5368949dd315ccde9ed80b325f596f8eea59d7e8d506ee56fdf3c4a84b5e31ea1961
|
7
|
+
data.tar.gz: '08aa808060b961b10594f92c48f3bdb7098fe3f9d2a9bc9fc1a35b1053aa4dd6b289c68d53a23eb874099203db873969497dda4c0678c42440261b6b1af57725'
|
data/bin/chef-vault
CHANGED
@@ -88,7 +88,7 @@ require "chef-vault"
|
|
88
88
|
|
89
89
|
ChefVault::Log.init(STDOUT)
|
90
90
|
ChefVault.load_config(options[:chef])
|
91
|
-
item = ChefVault::Item.load(options[:vault], options[:item])
|
91
|
+
item = ChefVault::Item.load(options[:vault], options[:item], options)
|
92
92
|
|
93
93
|
ChefVault::Log.info "#{options[:vault]}/#{options[:item]}"
|
94
94
|
|
data/lib/chef-vault/item.rb
CHANGED
@@ -306,10 +306,17 @@ class ChefVault
|
|
306
306
|
raise ChefVault::Exceptions::ItemNotFound,
|
307
307
|
"#{vault}/#{name} could not be found"
|
308
308
|
end
|
309
|
-
|
309
|
+
format_output(opts[:values], item) if opts[:values]
|
310
310
|
item
|
311
311
|
end
|
312
312
|
|
313
|
+
def self.format_output(values, item)
|
314
|
+
values.split(",").each do |value|
|
315
|
+
value.strip!
|
316
|
+
$stdout.puts("#{value}: #{item[value]}")
|
317
|
+
end
|
318
|
+
end
|
319
|
+
|
313
320
|
def delete_client(client_name)
|
314
321
|
client_key = load_actor(client_name, "clients")
|
315
322
|
keys.delete(client_key)
|
data/lib/chef-vault/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chef-vault
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.1.
|
4
|
+
version: 4.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thom May
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-11-26 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Data encryption support for Chef Infra using data bags
|
14
14
|
email:
|