chef 13.8.0 → 13.8.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +2 -5
- data/VERSION +1 -1
- data/lib/chef/knife.rb +1 -1
- data/lib/chef/version.rb +1 -1
- data/spec/integration/knife/deps_spec.rb +2 -2
- data/spec/unit/mixin/powershell_type_coercions_spec.rb +7 -6
- 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: f2019051c855875e303e9364fee1d00cc943d005
|
4
|
+
data.tar.gz: 65bb85db4544ae8da657c2a9b9c735d9e5579f5c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d7109bd2e5de772a7ff0718e8b633af048fc43529c4a03cdd93330730966387265e780d624886143e1b2b4e0e3ef66ad67de3ffffb81f0ddaa14908ce068ded1
|
7
|
+
data.tar.gz: 81af8481dac237e3afc79457c0bacd933a3122ecdc823e218c3cca52af99b4b8188f496b43c224e7be36609a71a6a9c64819ffc3aaaf0d25f7e1ee36b5d4c1c9
|
data/Gemfile
CHANGED
@@ -15,7 +15,7 @@ gem "cheffish", "~> 13" # required for rspec tests
|
|
15
15
|
group(:omnibus_package) do
|
16
16
|
gem "appbundler"
|
17
17
|
gem "rb-readline"
|
18
|
-
gem "inspec"
|
18
|
+
gem "inspec", "~> 1"
|
19
19
|
gem "chef-vault"
|
20
20
|
end
|
21
21
|
|
@@ -52,10 +52,7 @@ group(:development, :test) do
|
|
52
52
|
gem "rake"
|
53
53
|
gem "simplecov"
|
54
54
|
gem "webmock"
|
55
|
-
|
56
|
-
# for testing new chefstyle rules
|
57
|
-
# gem 'chefstyle', github: 'chef/chefstyle'
|
58
|
-
gem "chefstyle", git: "https://github.com/chef/chefstyle.git", branch: "master"
|
55
|
+
gem "chefstyle", "0.6.0"
|
59
56
|
end
|
60
57
|
|
61
58
|
group(:travis) do
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
13.8.
|
1
|
+
13.8.3
|
data/lib/chef/knife.rb
CHANGED
@@ -182,7 +182,7 @@ class Chef
|
|
182
182
|
config_loader.profile = profile
|
183
183
|
config_loader.load
|
184
184
|
|
185
|
-
ui.warn("No knife configuration file found") if config_loader.no_config_found?
|
185
|
+
ui.warn("No knife configuration file found. See https://docs.chef.io/config_rb_knife.html for details.") if config_loader.no_config_found?
|
186
186
|
|
187
187
|
config_loader
|
188
188
|
rescue Exceptions::ConfigurationError => e
|
data/lib/chef/version.rb
CHANGED
@@ -242,7 +242,7 @@ EOM
|
|
242
242
|
it "knife deps --tree prints each once" do
|
243
243
|
knife("deps --tree /roles/foo.json /roles/self.json") do
|
244
244
|
expect(stdout).to eq("/roles/foo.json\n /roles/bar.json\n /roles/baz.json\n /roles/foo.json\n/roles/self.json\n /roles/self.json\n")
|
245
|
-
expect(stderr).to eq("WARNING: No knife configuration file found
|
245
|
+
expect(stderr).to eq("WARNING: No knife configuration file found. See https://docs.chef.io/config_rb_knife.html for details.\n")
|
246
246
|
end
|
247
247
|
end
|
248
248
|
end
|
@@ -580,7 +580,7 @@ EOM
|
|
580
580
|
it "knife deps --tree prints each once" do
|
581
581
|
knife("deps --remote --tree /roles/foo.json /roles/self.json") do
|
582
582
|
expect(stdout).to eq("/roles/foo.json\n /roles/bar.json\n /roles/baz.json\n /roles/foo.json\n/roles/self.json\n /roles/self.json\n")
|
583
|
-
expect(stderr).to eq("WARNING: No knife configuration file found
|
583
|
+
expect(stderr).to eq("WARNING: No knife configuration file found. See https://docs.chef.io/config_rb_knife.html for details.\n")
|
584
584
|
end
|
585
585
|
end
|
586
586
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#
|
2
2
|
# Author:: Jay Mundrawala (<jdm@chef.io>)
|
3
|
-
# Copyright:: Copyright 2015-
|
3
|
+
# Copyright:: Copyright 2015-2017, Chef Software Inc.
|
4
4
|
# License:: Apache License, Version 2.0
|
5
5
|
#
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -64,14 +64,15 @@ describe Chef::Mixin::PowershellTypeCoercions do
|
|
64
64
|
end
|
65
65
|
|
66
66
|
it "translates a Chef::Node::ImmutableMash like a hash" do
|
67
|
-
|
68
|
-
|
69
|
-
expect(test_class.translate_type(
|
67
|
+
node = Chef::Node.new
|
68
|
+
node.default[:test] = { "a" => 1, "b" => 1.2, "c" => false, "d" => true }
|
69
|
+
expect(test_class.translate_type(node[:test])).to eq("@{a=1;b=1.2;c=$false;d=$true}")
|
70
70
|
end
|
71
71
|
|
72
72
|
it "translates a Chef::Node::ImmutableArray like an array" do
|
73
|
-
|
74
|
-
|
73
|
+
node = Chef::Node.new
|
74
|
+
node.default[:test] = [ true, false ]
|
75
|
+
expect(test_class.translate_type(node[:test])).to eq("@($true,$false)")
|
75
76
|
end
|
76
77
|
|
77
78
|
it "falls back :to_psobject if we have not defined at explicit rule" 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.8.
|
4
|
+
version: 13.8.3
|
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-02
|
11
|
+
date: 2018-03-02 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.8.
|
19
|
+
version: 13.8.3
|
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.8.
|
26
|
+
version: 13.8.3
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: mixlib-cli
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|