chef 13.9.4-universal-mingw32 → 13.10.0-universal-mingw32

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: 645833b67bfcdac9bdd59b1571df9a7332616987
4
- data.tar.gz: b4cff6d1c9b01ffbe669b52a92fef343a186bbe0
3
+ metadata.gz: 89c6a36f4f7dbeae1494ac2918ef036411e49400
4
+ data.tar.gz: 2b956f4ba5625c7f96481f3f492e99c27bade935
5
5
  SHA512:
6
- metadata.gz: be6b3e77b6ac11eb0979cf3d204145b431aa38bc9ab6f492217de9d42f62cf86533f4dade19ee105a098212c0b643affa8736a6ae446035228c5d6826afbd978
7
- data.tar.gz: 253373393ed254c30fc99c130e2bb359018ce0145273a5e4c28454fd704d4a4557056f1e46eaf45e0ddb79d3ea7338d2d4537ee58b7935cee476fe56dfbc1ea4
6
+ metadata.gz: 4e47eb7672fe3265a195925bcf173176d1ca9cccbd307e05e00ce2412d73c3e0dc95c79271c22701ebe6ac257f2317801575baf341c5b1425b4e632c15ba2c61
7
+ data.tar.gz: d129a23cf27e284959bc721f1bc544e50be54032a498e9a9fc8a7f472d0706a682c05ff90d342f46298e62aeb1646fb72790d7d842e19b68e783e1e9a03b1df8
data/VERSION CHANGED
@@ -1 +1 @@
1
- 13.9.4
1
+ 13.10.0
@@ -12,7 +12,7 @@ gemspec.add_dependency "win32-eventlog", "0.6.3"
12
12
  gemspec.add_dependency "win32-mmap", "~> 0.4.1"
13
13
  gemspec.add_dependency "win32-mutex", "~> 0.4.2"
14
14
  gemspec.add_dependency "win32-process", "~> 0.8.2"
15
- gemspec.add_dependency "win32-service", "~> 0.8.7"
15
+ gemspec.add_dependency "win32-service", "~> 1.0"
16
16
  gemspec.add_dependency "windows-api", "~> 0.4.4"
17
17
  gemspec.add_dependency "wmi-lite", "~> 1.0"
18
18
  gemspec.extensions << "ext/win32-eventlog/Rakefile"
@@ -177,7 +177,7 @@ class Chef
177
177
  # Based on config and whether or not STDOUT is a tty, should we setup a
178
178
  # secondary logger for stdout?
179
179
  def want_additional_logger?
180
- !( Chef::Config[:log_location].is_a?(IO) && Chef::Config[:log_location].tty? ) && !Chef::Config[:daemonize]
180
+ Chef::Config.is_default?(:log_location) && Chef::Config[:log_location].tty? && !Chef::Config[:daemonize]
181
181
  end
182
182
 
183
183
  def configure_stdout_logger
@@ -28,6 +28,7 @@ require "chef/workstation_config_loader"
28
28
  require "chef/mixin/shell_out"
29
29
  require "chef-config/mixin/dot_d"
30
30
  require "mixlib/archive"
31
+ require "uri"
31
32
 
32
33
  class Chef::Application::Client < Chef::Application
33
34
  include Chef::Mixin::ShellOut
@@ -528,10 +529,17 @@ class Chef::Application::Client < Chef::Application
528
529
 
529
530
  def fetch_recipe_tarball(url, path)
530
531
  Chef::Log.debug("Download recipes tarball from #{url} to #{path}")
531
- File.open(path, "wb") do |f|
532
- open(url) do |r|
533
- f.write(r.read)
532
+ if url =~ URI.regexp
533
+ File.open(path, "wb") do |f|
534
+ open(url) do |r|
535
+ f.write(r.read)
536
+ end
534
537
  end
538
+ elsif File.exist?(url)
539
+ FileUtils.cp(url, path)
540
+ else
541
+ Chef::Application.fatal! "You specified --recipe-url but the value is neither a valid URL nor a path to a file that exists on disk." +
542
+ "Please confirm the location of the tarball and try again."
535
543
  end
536
544
  end
537
545
  end
data/lib/chef/version.rb CHANGED
@@ -23,7 +23,7 @@ require "chef/version_string"
23
23
 
24
24
  class Chef
25
25
  CHEF_ROOT = File.expand_path("../..", __FILE__)
26
- VERSION = Chef::VersionString.new("13.9.4")
26
+ VERSION = Chef::VersionString.new("13.10.0")
27
27
  end
28
28
 
29
29
  #
@@ -553,6 +553,12 @@ EOM
553
553
  result = shell_out("#{chef_client} --recipe-url=http://localhost:9000/recipes.tgz", :cwd => tmp_dir)
554
554
  expect(result.exitstatus).not_to eq(0)
555
555
  end
556
+
557
+ it "should fail when passed --recipe-url with a file that doesn't exist" do
558
+ broken_path = File.join(CHEF_SPEC_DATA, "recipes_dont_exist.tgz")
559
+ result = shell_out("#{chef_client} --recipe-url=#{broken_path}", :cwd => tmp_dir)
560
+ expect(result.exitstatus).not_to eq(0)
561
+ end
556
562
  end
557
563
 
558
564
  when_the_repository "has a cookbook with broken metadata.rb, but has metadata.json" 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: 13.9.4
4
+ version: 13.10.0
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: 2018-06-05 00:00:00.000000000 Z
11
+ date: 2018-07-11 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: 13.9.4
19
+ version: 13.10.0
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: 13.9.4
26
+ version: 13.10.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: mixlib-cli
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -564,14 +564,14 @@ dependencies:
564
564
  requirements:
565
565
  - - "~>"
566
566
  - !ruby/object:Gem::Version
567
- version: 0.8.7
567
+ version: '1.0'
568
568
  type: :runtime
569
569
  prerelease: false
570
570
  version_requirements: !ruby/object:Gem::Requirement
571
571
  requirements:
572
572
  - - "~>"
573
573
  - !ruby/object:Gem::Version
574
- version: 0.8.7
574
+ version: '1.0'
575
575
  - !ruby/object:Gem::Dependency
576
576
  name: windows-api
577
577
  requirement: !ruby/object:Gem::Requirement