chef 12.19.33-universal-mingw32 → 12.19.36-universal-mingw32
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: 5fc9e425a52821d2132f9c35e148ba201e6f291d
|
4
|
+
data.tar.gz: 2cafadfbeea5999d646984789a267905500149ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 627595d883912ca598e30974e799525f7a8db3a750a8c8892f759a04857b48ad0d0bf7f60b9dd59f29fa7adf14bdcaac91f63e6c7c63f740578a220b21d24b66
|
7
|
+
data.tar.gz: 99012e152a7e361bb801206988469a19eb4a0769758e079754a123d2e08d295a5ab77e0ec99f383f5bc76dede3f116f1ca51febd79e64656ffd51e76be760568
|
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: universal-mingw32
|
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
|