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 +4 -4
- data/VERSION +1 -1
- data/chef-universal-mingw32.gemspec +1 -1
- data/lib/chef/application.rb +1 -1
- data/lib/chef/application/client.rb +11 -3
- data/lib/chef/version.rb +1 -1
- data/spec/integration/client/client_spec.rb +6 -0
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 89c6a36f4f7dbeae1494ac2918ef036411e49400
|
4
|
+
data.tar.gz: 2b956f4ba5625c7f96481f3f492e99c27bade935
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e47eb7672fe3265a195925bcf173176d1ca9cccbd307e05e00ce2412d73c3e0dc95c79271c22701ebe6ac257f2317801575baf341c5b1425b4e632c15ba2c61
|
7
|
+
data.tar.gz: d129a23cf27e284959bc721f1bc544e50be54032a498e9a9fc8a7f472d0706a682c05ff90d342f46298e62aeb1646fb72790d7d842e19b68e783e1e9a03b1df8
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
13.
|
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
|
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"
|
data/lib/chef/application.rb
CHANGED
@@ -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
|
-
|
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
|
-
|
532
|
-
open(
|
533
|
-
|
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
@@ -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.
|
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-
|
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.
|
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.
|
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
|
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
|
574
|
+
version: '1.0'
|
575
575
|
- !ruby/object:Gem::Dependency
|
576
576
|
name: windows-api
|
577
577
|
requirement: !ruby/object:Gem::Requirement
|