chef 12.19.33 → 12.19.36
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/chef/provider/package.rb +2 -4
- data/lib/chef/version.rb +1 -1
- data/spec/unit/provider/package/apt_spec.rb +10 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 335aea9aecdac4a9defa58006059d87033abe677
|
4
|
+
data.tar.gz: 13b5a5f45795e1510e381a895a2b9a094b816f5f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81560c62293354d270308a04fc712a7ef6f8dfe64f9b2ad5b07e2bb453d489cb7fc252efe88bc5d079e6b0ab23fba8b8afd6de144f980efe1dbd76e2ba1f8e78
|
7
|
+
data.tar.gz: 63fc53a5763e242ea084c13bf5d469449bc8df4d058f92d6a336c0166e45b4397e51179a71575ed405bbc8fa7441f4f9ccee8e6d90d34c68cd9a4d573b9fdd2d
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
12.19.
|
1
|
+
12.19.36
|
@@ -23,6 +23,7 @@ require "chef/log"
|
|
23
23
|
require "chef/file_cache"
|
24
24
|
require "chef/platform"
|
25
25
|
require "chef/decorator/lazy_array"
|
26
|
+
require "shellwords"
|
26
27
|
|
27
28
|
class Chef
|
28
29
|
class Provider
|
@@ -54,10 +55,7 @@ class Chef
|
|
54
55
|
|
55
56
|
def options
|
56
57
|
if new_resource.options.is_a?(String)
|
57
|
-
|
58
|
-
# more like a space-separated "C"SV file -- although users can fix this just by passing in
|
59
|
-
# a correctly pre-split Array.
|
60
|
-
new_resource.options.split(" ")
|
58
|
+
new_resource.options.shellsplit
|
61
59
|
else
|
62
60
|
new_resource.options
|
63
61
|
end
|
data/lib/chef/version.rb
CHANGED
@@ -291,6 +291,16 @@ mpg123 1.12.1-0ubuntu1
|
|
291
291
|
|
292
292
|
@provider.install_package(["irssi"], ["0.8.12-7"])
|
293
293
|
end
|
294
|
+
|
295
|
+
it "should run apt-get install with the package name and quotes options if specified" do
|
296
|
+
expect(@provider).to receive(:shell_out!).with(
|
297
|
+
"apt-get", "-q", "-y", "--force-yes", "-o", "Dpkg::Options::=--force-confdef", "-o", "Dpkg::Options::=--force-confnew", "install", "irssi=0.8.12-7",
|
298
|
+
:env => { "DEBIAN_FRONTEND" => "noninteractive" },
|
299
|
+
:timeout => @timeout
|
300
|
+
)
|
301
|
+
@new_resource.options('--force-yes -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confnew"')
|
302
|
+
@provider.install_package(["irssi"], ["0.8.12-7"])
|
303
|
+
end
|
294
304
|
end
|
295
305
|
|
296
306
|
describe resource_klass, "upgrade_package" do
|
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.19.
|
4
|
+
version: 12.19.36
|
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-02-
|
11
|
+
date: 2017-02-23 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.19.
|
19
|
+
version: 12.19.36
|
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.19.
|
26
|
+
version: 12.19.36
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: mixlib-cli
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|