chef-vault 4.1.3 → 4.1.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 19add775da291b1eb9dc767f149c98e477f5048ea30e4a525ff1e143918f5847
4
- data.tar.gz: 483d87a0e56f4209fc532be68a11add44a2b7a968ce9ee0c37729e241cb723c5
3
+ metadata.gz: 14e3a2852ee8d6656907e8a0d56c097457d28407d97019479f445676b5d2b04e
4
+ data.tar.gz: cf816e130bbb5b811658d2d164c23c8d5c24989ef76908fec4e65a7e3747ab31
5
5
  SHA512:
6
- metadata.gz: 70423d48be58261e55b09b0cba47df51366571795d2bd9b1c60c0255b26f1e796e3d52c8c3cb32f13ae33e07860c88c67b2d124e74b432b8ac0bfc00c6b9b4a4
7
- data.tar.gz: 89400da10b9840bd63b9ff626abbb32bea9f40897efa989f70c5ee63e6e533a21807491a936358d35652af30c67ceb67c4a9e5345393758217b7f9c42320bd58
6
+ metadata.gz: f80e43a595981aaf058b86389ca26c97f31b685281a981946ceca1d11468ad132965326c1583b9458dcac400be3d33edb76cfddb933676ae3396d81b1226c97a
7
+ data.tar.gz: f315160a8a135f005ea8204229910979b506b927b71da1131c76aeba088ec00ea0ba962d7c5c87e5f61b563024bccdcd7865c41c241719cf3ecd73ac33499be9
@@ -30,13 +30,15 @@ class Chef
30
30
 
31
31
  if vault && item
32
32
  delete_object(ChefVault::Item, "#{vault}/#{item}", "chef_vault_item") do
33
-
34
- ChefVault::Item.load(vault, item).destroy
35
- rescue ChefVault::Exceptions::KeysNotFound,
36
- ChefVault::Exceptions::ItemNotFound
37
- raise ChefVault::Exceptions::ItemNotFound,
38
- "#{vault}/#{item} not found."
39
-
33
+ # rubocop:disable all
34
+ begin
35
+ ChefVault::Item.load(vault, item).destroy
36
+ rescue ChefVault::Exceptions::KeysNotFound,
37
+ ChefVault::Exceptions::ItemNotFound
38
+ raise ChefVault::Exceptions::ItemNotFound,
39
+ "#{vault}/#{item} not found."
40
+ end
41
+ # rubocop:enable all
40
42
  end
41
43
  else
42
44
  show_usage
@@ -89,12 +89,14 @@ class ChefVault
89
89
  handle_client_action(search_or_client, action)
90
90
  else
91
91
  search_or_client.each do |name|
92
-
93
- client = load_actor(name, "clients")
94
- handle_client_action(client, action)
95
- rescue ChefVault::Exceptions::ClientNotFound
96
- ChefVault::Log.warn "node '#{name}' has no 'default' public key; skipping"
97
-
92
+ # rubocop:disable all
93
+ begin
94
+ client = load_actor(name, "clients")
95
+ handle_client_action(client, action)
96
+ rescue ChefVault::Exceptions::ClientNotFound
97
+ ChefVault::Log.warn "node '#{name}' has no 'default' public key; skipping"
98
+ end
99
+ # rubocop:enable all
98
100
  end
99
101
  end
100
102
  end
@@ -15,6 +15,6 @@
15
15
  # limitations under the License.
16
16
 
17
17
  class ChefVault
18
- VERSION = "4.1.3"
18
+ VERSION = "4.1.4"
19
19
  MAJOR, MINOR, TINY = VERSION.split(".")
20
20
  end
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.3
4
+ version: 4.1.4
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-09-01 00:00:00.000000000 Z
11
+ date: 2021-09-09 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Data encryption support for Chef Infra using data bags
14
14
  email: