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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 65ad4a81b7257c30979320de1dca03c7d0b86edb
4
- data.tar.gz: 701e250fc4dea8abef56bb8e469f73adebe7c2e0
3
+ metadata.gz: 335aea9aecdac4a9defa58006059d87033abe677
4
+ data.tar.gz: 13b5a5f45795e1510e381a895a2b9a094b816f5f
5
5
  SHA512:
6
- metadata.gz: 5fe830a55ca6c2370a2290a61fc20172da9ba6b5fd776925acf6e1a8ce1593adf348d1da625f734bd0e15822cb3fa4856b7e05a7233290c245e9147627f1caf0
7
- data.tar.gz: 50987c4fd53c7c6903976523885c8f1cde0a8057763ba379653c6f4f0b5c98bfd740da4cd117869cefb54054e5f72795c50c9aee020df421caf3aafb0fd48dd7
6
+ metadata.gz: 81560c62293354d270308a04fc712a7ef6f8dfe64f9b2ad5b07e2bb453d489cb7fc252efe88bc5d079e6b0ab23fba8b8afd6de144f980efe1dbd76e2ba1f8e78
7
+ data.tar.gz: 63fc53a5763e242ea084c13bf5d469449bc8df4d058f92d6a336c0166e45b4397e51179a71575ed405bbc8fa7441f4f9ccee8e6d90d34c68cd9a4d573b9fdd2d
data/VERSION CHANGED
@@ -1 +1 @@
1
- 12.19.33
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
- # XXX: needs to handle double quotes, single quotes, nested quotes, etc and probably act
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
@@ -21,7 +21,7 @@
21
21
 
22
22
  class Chef
23
23
  CHEF_ROOT = File.expand_path("../..", __FILE__)
24
- VERSION = "12.19.33"
24
+ VERSION = "12.19.36"
25
25
  end
26
26
 
27
27
  #
@@ -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.33
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-16 00:00:00.000000000 Z
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.33
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.33
26
+ version: 12.19.36
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: mixlib-cli
29
29
  requirement: !ruby/object:Gem::Requirement