chef 13.9.4 → 13.10.0

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: 7a0a3b0e99d63bab3ec6bb3bca48a6429c698aa4
4
- data.tar.gz: b3b7f067508a950eee10f5567929f875c94b6563
3
+ metadata.gz: 755e33dfeebb4f7feb8c20fe62c5149cf80e379a
4
+ data.tar.gz: dd6572e44c36e13278ed9ea09fe43733a70de874
5
5
  SHA512:
6
- metadata.gz: 62bd331eb4c8faf34229dbf79f6615ccd5e157bb42e699d65081a2b3988b17000e9c802e96ef7b38516d329bd929cd371f13fc02481c91205150a7312ef418e2
7
- data.tar.gz: 50b3e0b6bbd81489ee62c2b6d758eb5860883b5ecf5a772183cd5dc4ef008f2ec0cff009e982c84ee414178e8f28c65731a578505a5cf6b7d78dc0277959a98d
6
+ metadata.gz: 6c88eaa977890d5d3e06a6ec083153827b894117fa37ef45cf29936c745fbf5e765da56970903bd39964c7004a705c71d20883f2c51282902142a68421e0bb86
7
+ data.tar.gz: dddf42b637ced664c9e9d48c578c49039b28f43e9a1cd7846e2fee4d158da838c42e7752701fe64e806f2ed31b3b5d35a1af261134b14355cf35b6544e0e152a
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
@@ -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: ruby
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