chef 12.21.12 → 12.21.14

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: 6a9cfce3a9c74e84ffa685e513386db548002580
4
- data.tar.gz: 11180225a5ac33925b6746cd85c3cd8a253091ae
3
+ metadata.gz: badf5e8bd4f99974685e95fb2456c1448eb8847f
4
+ data.tar.gz: c84f02357be9848521807397383bb5e98f5674c1
5
5
  SHA512:
6
- metadata.gz: 5d89f801502474f4360bfc0df5a8da84f7ef4c1ad1cd22b3bbcec2b972f6e18f0c108efa7c3f0ce01846ad1bf9e862123ac942bcdc7cb17aa31d9f7aa999ba78
7
- data.tar.gz: 2bf71ae0ce47fc9b3b6288e3ad0e5a8f6006e0a697dd66f4023c7571daa53e0e116fa874b6cac628336a3cc736f93727a9266dc87600c5f4be3a241090e3d85d
6
+ metadata.gz: 8d08b95da842e485c54b2a5d8c7aab24e170eda8b485a16232eed37da82f7eb8ad05ea5ec2a2ac28b854619cb4de23f1e04bbac1b5b0e5b258dc1daccdee8423
7
+ data.tar.gz: 8a997e21ae9f177c00fd4d46d139b0dd9d8562d7c92feb55dcd9a21df38320743cf3e3c28b0fbf99e315035ecda5f4884437bcef45a9f36e775d18b994131ba3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 12.21.12
1
+ 12.21.14
@@ -31,6 +31,9 @@ class Chef
31
31
  include Chef::Mixin::ShellOut
32
32
  extend Chef::Mixin::Which
33
33
 
34
+ LIST_APT_KEYS = "apt-key list".freeze
35
+ LIST_APT_KEY_FINGERPRINTS = "apt-key adv --list-public-keys --with-fingerprint --with-colons".freeze
36
+
34
37
  provides :apt_repository do
35
38
  which("apt-get")
36
39
  end
@@ -149,7 +152,7 @@ class Chef
149
152
  def no_new_keys?(file)
150
153
  # Now we are using the option --with-colons that works across old os versions
151
154
  # as well as the latest (16.10). This for both `apt-key` and `gpg` commands
152
- installed_keys = extract_fingerprints_from_cmd("apt-key adv --list-public-keys --with-fingerprint --with-colons")
155
+ installed_keys = extract_fingerprints_from_cmd(LIST_APT_KEY_FINGERPRINTS)
153
156
  proposed_keys = extract_fingerprints_from_cmd("gpg --with-fingerprint --with-colons #{file}")
154
157
  (installed_keys & proposed_keys).sort == proposed_keys.sort
155
158
  end
@@ -200,15 +203,15 @@ class Chef
200
203
  command cmd
201
204
  sensitive new_resource.sensitive
202
205
  not_if do
203
- present = extract_fingerprints_from_cmd("apt-key finger").any? do |fp|
206
+ present = extract_fingerprints_from_cmd(LIST_APT_KEY_FINGERPRINTS).any? do |fp|
204
207
  fp.end_with? key.upcase
205
208
  end
206
- present && key_is_valid?("apt-key list", key.upcase)
209
+ present && key_is_valid?(LIST_APT_KEYS, key.upcase)
207
210
  end
208
211
  notifies :run, "execute[apt-cache gencaches]", :immediately
209
212
  end
210
213
 
211
- raise "The key #{key} is invalid and cannot be used to verify an apt repository." unless key_is_valid?("apt-key list", key.upcase)
214
+ raise "The key #{key} is invalid and cannot be used to verify an apt repository." unless key_is_valid?(LIST_APT_KEYS, key.upcase)
212
215
  end
213
216
 
214
217
  def install_ppa_key(owner, repo)
@@ -21,7 +21,7 @@
21
21
 
22
22
  class Chef
23
23
  CHEF_ROOT = File.expand_path("../..", __FILE__)
24
- VERSION = "12.21.12"
24
+ VERSION = "12.21.14"
25
25
  end
26
26
 
27
27
  #
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef
3
3
  version: !ruby/object:Gem::Version
4
- version: 12.21.12
4
+ version: 12.21.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Jacob
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-14 00:00:00.000000000 Z
11
+ date: 2017-09-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chef-config
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 12.21.12
19
+ version: 12.21.14
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 12.21.12
26
+ version: 12.21.14
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: mixlib-cli
29
29
  requirement: !ruby/object:Gem::Requirement