chef-config 13.12.14 → 14.0.190
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +0 -0
- data/Rakefile +6 -2
- data/chef-config.gemspec +2 -2
- data/lib/chef-config.rb +0 -0
- data/lib/chef-config/config.rb +15 -4
- data/lib/chef-config/exceptions.rb +0 -0
- data/lib/chef-config/fips.rb +0 -0
- data/lib/chef-config/logger.rb +3 -0
- data/lib/chef-config/mixin/credentials.rb +0 -0
- data/lib/chef-config/mixin/dot_d.rb +0 -0
- data/lib/chef-config/mixin/fuzzy_hostname_matcher.rb +0 -0
- data/lib/chef-config/package_task.rb +289 -0
- data/lib/chef-config/path_helper.rb +2 -2
- data/lib/chef-config/version.rb +1 -1
- data/lib/chef-config/windows.rb +0 -0
- data/lib/chef-config/workstation_config_loader.rb +0 -0
- data/spec/spec_helper.rb +0 -0
- data/spec/unit/config_spec.rb +8 -4
- data/spec/unit/fips_spec.rb +0 -0
- data/spec/unit/path_helper_spec.rb +0 -0
- data/spec/unit/workstation_config_loader_spec.rb +0 -0
- metadata +12 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7191ffc57f1e2312b58ed62e80ba510d6bdceef757bab0f30b1f91eb01435e5c
|
4
|
+
data.tar.gz: f3ca9d4f2a034f1535009e7a6bfe5d4923f1738d9cc5037f98e7410ad24cc85f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db88da348340f6a1c278862e938259e9d68656de2f9ead722e629ba107698ba5a57276802693bf044f7a5ea2d65487c75b9fb6a6cadbdfde152a0854c1858c0a
|
7
|
+
data.tar.gz: 660d1b713084c5f75b5a15529389e343c5d7c05a3d6494e2ec7b46927ebcb2c97b3feb4b32e429a1e97da4044539831ba079ded8989431bf242116496830f458
|
data/LICENSE
CHANGED
File without changes
|
data/Rakefile
CHANGED
@@ -1,6 +1,10 @@
|
|
1
|
-
require "
|
1
|
+
require "chef-config/package_task"
|
2
2
|
|
3
|
-
|
3
|
+
ChefConfig::PackageTask.new(File.expand_path("..", __FILE__), "ChefConfig", "chef-config") do |package|
|
4
|
+
package.module_path = "chef-config"
|
5
|
+
end
|
6
|
+
|
7
|
+
task :default => :spec
|
4
8
|
|
5
9
|
begin
|
6
10
|
require "rspec/core/rake_task"
|
data/chef-config.gemspec
CHANGED
@@ -16,12 +16,12 @@ Gem::Specification.new do |spec|
|
|
16
16
|
spec.require_paths = ["lib"]
|
17
17
|
|
18
18
|
spec.add_dependency "mixlib-shellout", "~> 2.0"
|
19
|
-
spec.add_dependency "mixlib-config", "
|
19
|
+
spec.add_dependency "mixlib-config", "~> 2.0"
|
20
20
|
spec.add_dependency "fuzzyurl"
|
21
21
|
spec.add_dependency "addressable"
|
22
22
|
spec.add_dependency "tomlrb", "~> 1.2"
|
23
23
|
|
24
|
-
spec.add_development_dependency "rake"
|
24
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
25
25
|
|
26
26
|
%w{rspec-core rspec-expectations rspec-mocks}.each do |rspec|
|
27
27
|
spec.add_development_dependency(rspec, "~> 3.2")
|
data/lib/chef-config.rb
CHANGED
File without changes
|
data/lib/chef-config/config.rb
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
# Author:: AJ Christensen (<aj@chef.io>)
|
5
5
|
# Author:: Mark Mzyk (<mmzyk@chef.io>)
|
6
6
|
# Author:: Kyle Goodwin (<kgoodwin@primerevenue.com>)
|
7
|
-
# Copyright:: Copyright 2008-
|
7
|
+
# Copyright:: Copyright 2008-2018, Chef Software Inc.
|
8
8
|
# License:: Apache License, Version 2.0
|
9
9
|
#
|
10
10
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -354,6 +354,11 @@ module ChefConfig
|
|
354
354
|
|
355
355
|
default :http_retry_count, 5
|
356
356
|
default :http_retry_delay, 5
|
357
|
+
# Whether or not to send the Authorization header again on http redirects.
|
358
|
+
# As per the plan in https://github.com/chef/chef/pull/7006, this will be
|
359
|
+
# False in Chef 14, True in Chef 15, and will be removed entirely in Chef 16.
|
360
|
+
default :http_disable_auth_on_redirect, false
|
361
|
+
|
357
362
|
default :interval, nil
|
358
363
|
default :once, nil
|
359
364
|
default :json_attribs, nil
|
@@ -440,7 +445,7 @@ module ChefConfig
|
|
440
445
|
default :splay, nil
|
441
446
|
default :why_run, false
|
442
447
|
default :color, false
|
443
|
-
default :client_fork,
|
448
|
+
default :client_fork, nil
|
444
449
|
default :ez, false
|
445
450
|
default :enable_reporting, true
|
446
451
|
default :enable_reporting_url_fatals, false
|
@@ -712,6 +717,12 @@ module ChefConfig
|
|
712
717
|
# The selected profile when using credentials.
|
713
718
|
default :profile, nil
|
714
719
|
|
720
|
+
default :chef_guid_path do
|
721
|
+
PathHelper.join(config_dir, "chef_guid")
|
722
|
+
end
|
723
|
+
|
724
|
+
default :chef_guid, nil
|
725
|
+
|
715
726
|
# knife configuration data
|
716
727
|
config_context :knife do
|
717
728
|
# XXX: none of these default values are applied to knife (and would create a backcompat
|
@@ -1054,9 +1065,9 @@ module ChefConfig
|
|
1054
1065
|
end
|
1055
1066
|
rescue
|
1056
1067
|
if ChefConfig.windows?
|
1057
|
-
ChefConfig.logger.
|
1068
|
+
ChefConfig.logger.trace "Defaulting to locale en_US.UTF-8 on Windows, until it matters that we do something else."
|
1058
1069
|
else
|
1059
|
-
ChefConfig.logger.
|
1070
|
+
ChefConfig.logger.trace "No usable locale -a command found, assuming you have en_US.UTF-8 installed."
|
1060
1071
|
end
|
1061
1072
|
"en_US.UTF-8"
|
1062
1073
|
end
|
File without changes
|
data/lib/chef-config/fips.rb
CHANGED
File without changes
|
data/lib/chef-config/logger.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,289 @@
|
|
1
|
+
#
|
2
|
+
# Author:: Kartik Null Cating-Subramanian (<ksubramanian@chef.io>)
|
3
|
+
# Copyright:: Copyright 2015-2016, Chef, Inc.
|
4
|
+
# License:: Apache License, Version 2.0
|
5
|
+
#
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
+
# you may not use this file except in compliance with the License.
|
8
|
+
# You may obtain a copy of the License at
|
9
|
+
#
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
#
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
# See the License for the specific language governing permissions and
|
16
|
+
# limitations under the License.
|
17
|
+
#
|
18
|
+
|
19
|
+
require "rake"
|
20
|
+
require "rubygems"
|
21
|
+
require "rubygems/package_task"
|
22
|
+
|
23
|
+
module ChefConfig
|
24
|
+
class PackageTask < Rake::TaskLib
|
25
|
+
|
26
|
+
# Full path to root of top-level repository. All other files (like VERSION or
|
27
|
+
# lib/<module_path>/version.rb are rooted at this path).
|
28
|
+
attr_accessor :root_path
|
29
|
+
|
30
|
+
# Name of the top-level module/library build built. This is used to define
|
31
|
+
# the top level module which contains VERSION and MODULE_ROOT.
|
32
|
+
attr_accessor :module_name
|
33
|
+
|
34
|
+
# Name of the gem being built. This is used to find the lines to fix in
|
35
|
+
# Gemfile.lock.
|
36
|
+
attr_accessor :gem_name
|
37
|
+
|
38
|
+
# Should the generated version.rb be in a class or module? Default is false (module).
|
39
|
+
attr_accessor :generate_version_class
|
40
|
+
|
41
|
+
# Paths to the roots of any components that also support ChefPackageTask.
|
42
|
+
# If relative paths are provided, they are rooted against root_path.
|
43
|
+
attr_accessor :component_paths
|
44
|
+
|
45
|
+
# This is the module name as it appears on the path "lib/module/".
|
46
|
+
# e.g. for module_name "ChefDK", you'd want module_path to be "chef-dk".
|
47
|
+
# The default is module_name but lower-cased.
|
48
|
+
attr_writer :module_path
|
49
|
+
|
50
|
+
def module_path
|
51
|
+
@module_path || module_name.downcase
|
52
|
+
end
|
53
|
+
|
54
|
+
# Directory used to store package files and output that is generated.
|
55
|
+
# This has the same meaning (or lack thereof) as package_dir in
|
56
|
+
# rake/packagetask.
|
57
|
+
attr_accessor :package_dir
|
58
|
+
|
59
|
+
# Name of git remote used to push tags during a release. Default is origin.
|
60
|
+
attr_accessor :git_remote
|
61
|
+
|
62
|
+
# True if should use Chef::VersionString.
|
63
|
+
attr_accessor :use_versionstring
|
64
|
+
|
65
|
+
def initialize(root_path = nil, module_name = nil, gem_name = nil)
|
66
|
+
init(root_path, module_name, gem_name)
|
67
|
+
yield self if block_given?
|
68
|
+
define unless root_path.nil? || module_name.nil?
|
69
|
+
end
|
70
|
+
|
71
|
+
def init(root_path, module_name, gem_name)
|
72
|
+
@root_path = root_path
|
73
|
+
@module_name = module_name
|
74
|
+
@gem_name = gem_name
|
75
|
+
@component_paths = []
|
76
|
+
@module_path = nil
|
77
|
+
@package_dir = "pkg"
|
78
|
+
@git_remote = "origin"
|
79
|
+
@generate_version_class = false
|
80
|
+
end
|
81
|
+
|
82
|
+
def component_full_paths
|
83
|
+
component_paths.map { |path| File.expand_path(path, root_path) }
|
84
|
+
end
|
85
|
+
|
86
|
+
def version_rb_path
|
87
|
+
File.expand_path("lib/#{module_path}/version.rb", root_path)
|
88
|
+
end
|
89
|
+
|
90
|
+
def chef_root_path
|
91
|
+
module_name == "Chef" ? root_path : File.dirname(root_path)
|
92
|
+
end
|
93
|
+
|
94
|
+
def version_file_path
|
95
|
+
File.join(chef_root_path, "VERSION")
|
96
|
+
end
|
97
|
+
|
98
|
+
def gemfile_lock_path
|
99
|
+
File.join(root_path, "Gemfile.lock")
|
100
|
+
end
|
101
|
+
|
102
|
+
def version
|
103
|
+
IO.read(version_file_path).strip
|
104
|
+
end
|
105
|
+
|
106
|
+
def full_package_dir
|
107
|
+
File.expand_path(package_dir, root_path)
|
108
|
+
end
|
109
|
+
|
110
|
+
def class_or_module
|
111
|
+
generate_version_class ? "class" : "module"
|
112
|
+
end
|
113
|
+
|
114
|
+
def with_clean_env(&block)
|
115
|
+
if defined?(Bundler)
|
116
|
+
Bundler.with_clean_env(&block)
|
117
|
+
else
|
118
|
+
yield
|
119
|
+
end
|
120
|
+
end
|
121
|
+
|
122
|
+
def define
|
123
|
+
raise "Need to provide package root and module name" if root_path.nil? || module_name.nil?
|
124
|
+
|
125
|
+
desc "Build Gems of component dependencies"
|
126
|
+
task :package_components do
|
127
|
+
component_full_paths.each do |component_path|
|
128
|
+
Dir.chdir(component_path) do
|
129
|
+
sh "rake package"
|
130
|
+
end
|
131
|
+
end
|
132
|
+
end
|
133
|
+
|
134
|
+
task :package => :package_components
|
135
|
+
|
136
|
+
desc "Build and install component dependencies"
|
137
|
+
task :install_components => :package_components do
|
138
|
+
component_full_paths.each do |component_path|
|
139
|
+
Dir.chdir(component_path) do
|
140
|
+
sh "rake install"
|
141
|
+
end
|
142
|
+
end
|
143
|
+
end
|
144
|
+
|
145
|
+
task :install => :install_components
|
146
|
+
|
147
|
+
desc "Clean up builds of component dependencies"
|
148
|
+
task :clobber_component_packages do
|
149
|
+
component_full_paths.each do |component_path|
|
150
|
+
Dir.chdir(component_path) do
|
151
|
+
sh "rake clobber_package"
|
152
|
+
end
|
153
|
+
end
|
154
|
+
end
|
155
|
+
|
156
|
+
task :clobber_package => :clobber_component_packages
|
157
|
+
|
158
|
+
desc "Update the version number for component dependencies"
|
159
|
+
task :update_components_versions do
|
160
|
+
component_full_paths.each do |component_path|
|
161
|
+
Dir.chdir(component_path) do
|
162
|
+
sh "rake version"
|
163
|
+
end
|
164
|
+
end
|
165
|
+
end
|
166
|
+
|
167
|
+
namespace :version do
|
168
|
+
desc "Regenerate lib/#{module_path}/version.rb from VERSION file"
|
169
|
+
task :update => :update_components_versions do
|
170
|
+
update_version_rb
|
171
|
+
update_gemfile_lock
|
172
|
+
end
|
173
|
+
|
174
|
+
task :bump => %w{version:bump_patch version:update}
|
175
|
+
|
176
|
+
task :show do
|
177
|
+
puts version
|
178
|
+
end
|
179
|
+
|
180
|
+
# Add 1 to the current patch version in the VERSION file, and write it back out.
|
181
|
+
task :bump_patch do
|
182
|
+
current_version = version
|
183
|
+
new_version = current_version.sub(/^(\d+\.\d+\.)(\d+)/) { "#{$1}#{$2.to_i + 1}" }
|
184
|
+
puts "Updating version in #{version_rb_path} from #{current_version.chomp} to #{new_version.chomp}"
|
185
|
+
IO.write(version_file_path, new_version)
|
186
|
+
end
|
187
|
+
|
188
|
+
task :bump_minor do
|
189
|
+
current_version = version
|
190
|
+
new_version = current_version.sub(/^(\d+)\.(\d+)\.(\d+)/) { "#{$1}.#{$2.to_i + 1}.0" }
|
191
|
+
puts "Updating version in #{version_rb_path} from #{current_version.chomp} to #{new_version.chomp}"
|
192
|
+
IO.write(version_file_path, new_version)
|
193
|
+
end
|
194
|
+
|
195
|
+
task :bump_major do
|
196
|
+
current_version = version
|
197
|
+
new_version = current_version.sub(/^(\d+)\.(\d+\.\d+)/) { "#{$1.to_i + 1}.0.0" }
|
198
|
+
puts "Updating version in #{version_rb_path} from #{current_version.chomp} to #{new_version.chomp}"
|
199
|
+
IO.write(version_file_path, new_version)
|
200
|
+
end
|
201
|
+
|
202
|
+
def update_version_rb # rubocop:disable Lint/NestedMethodDefinition
|
203
|
+
puts "Updating #{version_rb_path} to include version #{version} ..."
|
204
|
+
contents = <<-VERSION_RB
|
205
|
+
# Copyright:: Copyright 2010-2016, Chef Software, Inc.
|
206
|
+
# License:: Apache License, Version 2.0
|
207
|
+
#
|
208
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
209
|
+
# you may not use this file except in compliance with the License.
|
210
|
+
# You may obtain a copy of the License at
|
211
|
+
#
|
212
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
213
|
+
#
|
214
|
+
# Unless required by applicable law or agreed to in writing, software
|
215
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
216
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
217
|
+
# See the License for the specific language governing permissions and
|
218
|
+
# limitations under the License.
|
219
|
+
|
220
|
+
#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
221
|
+
# NOTE: This file is generated by running `rake version` in the top level of
|
222
|
+
# this repo. Do not edit this manually. Edit the VERSION file and run the rake
|
223
|
+
# task instead.
|
224
|
+
#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
225
|
+
#{"\nrequire \"chef/version_string\"\n" if use_versionstring}
|
226
|
+
#{class_or_module} #{module_name}
|
227
|
+
#{module_name.upcase}_ROOT = File.expand_path("../..", __FILE__)
|
228
|
+
VERSION = #{use_versionstring ? "Chef::VersionString.new(\"#{version}\")" : "\"#{version}\""}
|
229
|
+
end
|
230
|
+
|
231
|
+
#
|
232
|
+
# NOTE: the Chef::Version class is defined in version_class.rb
|
233
|
+
#
|
234
|
+
# NOTE: DO NOT Use the Chef::Version class on #{module_name}::VERSIONs. The
|
235
|
+
# Chef::Version class is for _cookbooks_ only, and cannot handle
|
236
|
+
# pre-release versions like "10.14.0.rc.2". Please use Rubygem's
|
237
|
+
# Gem::Version class instead.
|
238
|
+
#
|
239
|
+
VERSION_RB
|
240
|
+
IO.write(version_rb_path, contents)
|
241
|
+
end
|
242
|
+
|
243
|
+
def update_gemfile_lock # rubocop:disable Lint/NestedMethodDefinition
|
244
|
+
if File.exist?(gemfile_lock_path)
|
245
|
+
puts "Updating #{gemfile_lock_path} to include version #{version} ..."
|
246
|
+
contents = IO.read(gemfile_lock_path)
|
247
|
+
contents.gsub!(/^\s*(chef|chef-config)\s*\((= )?\S+\)\s*$/) do |line|
|
248
|
+
line.gsub(/\((= )?\d+(\.\d+)+/) { "(#{$1}#{version}" }
|
249
|
+
end
|
250
|
+
IO.write(gemfile_lock_path, contents)
|
251
|
+
end
|
252
|
+
end
|
253
|
+
end
|
254
|
+
|
255
|
+
task :version => "version:update"
|
256
|
+
|
257
|
+
gemspec_platform_to_install = ""
|
258
|
+
Dir[File.expand_path("*.gemspec", root_path)].reverse_each do |gemspec_path|
|
259
|
+
gemspec = eval(IO.read(gemspec_path))
|
260
|
+
Gem::PackageTask.new(gemspec) do |task|
|
261
|
+
task.package_dir = full_package_dir
|
262
|
+
end
|
263
|
+
gemspec_platform_to_install = "-#{gemspec.platform}" if gemspec.platform != Gem::Platform::RUBY && Gem::Platform.match(gemspec.platform)
|
264
|
+
end
|
265
|
+
|
266
|
+
desc "Build and install a #{module_path} gem"
|
267
|
+
task :install => [:package] do
|
268
|
+
with_clean_env do
|
269
|
+
full_module_path = File.join(full_package_dir, module_path)
|
270
|
+
sh %{gem install #{full_module_path}-#{version}#{gemspec_platform_to_install}.gem --no-rdoc --no-ri}
|
271
|
+
end
|
272
|
+
end
|
273
|
+
|
274
|
+
task :uninstall do
|
275
|
+
sh %{gem uninstall #{module_path} -x -v #{version} }
|
276
|
+
end
|
277
|
+
|
278
|
+
desc "Build it, tag it and ship it"
|
279
|
+
task :ship => [:clobber_package, :gem] do
|
280
|
+
sh("git tag #{version}")
|
281
|
+
sh("git push #{git_remote} --tags")
|
282
|
+
Dir[File.expand_path("*.gem", full_package_dir)].reverse_each do |built_gem|
|
283
|
+
sh("gem push #{built_gem}")
|
284
|
+
end
|
285
|
+
end
|
286
|
+
end
|
287
|
+
end
|
288
|
+
|
289
|
+
end
|
@@ -79,7 +79,7 @@ module ChefConfig
|
|
79
79
|
end
|
80
80
|
|
81
81
|
if windows_max_length_exceeded?(path)
|
82
|
-
ChefConfig.logger.
|
82
|
+
ChefConfig.logger.trace("Path '#{path}' is longer than #{WIN_MAX_PATH}, prefixing with'\\\\?\\'")
|
83
83
|
path.insert(0, "\\\\?\\")
|
84
84
|
end
|
85
85
|
end
|
@@ -251,7 +251,7 @@ module ChefConfig
|
|
251
251
|
# Determine if the given path is protected by OS X System Integrity Protection.
|
252
252
|
def self.is_sip_path?(path, node)
|
253
253
|
if node["platform"] == "mac_os_x" && Gem::Version.new(node["platform_version"]) >= Gem::Version.new("10.11")
|
254
|
-
#
|
254
|
+
# todo: parse rootless.conf for this?
|
255
255
|
sip_paths = [
|
256
256
|
"/System", "/bin", "/sbin", "/usr"
|
257
257
|
]
|
data/lib/chef-config/version.rb
CHANGED
data/lib/chef-config/windows.rb
CHANGED
File without changes
|
File without changes
|
data/spec/spec_helper.rb
CHANGED
File without changes
|
data/spec/unit/config_spec.rb
CHANGED
@@ -767,8 +767,8 @@ RSpec.describe ChefConfig::Config do
|
|
767
767
|
shared_examples_for "a suitable locale" do
|
768
768
|
it "returns an English UTF-8 locale" do
|
769
769
|
expect(ChefConfig.logger).to_not receive(:warn).with(/Please install an English UTF-8 locale for Chef to use/)
|
770
|
-
expect(ChefConfig.logger).to_not receive(:
|
771
|
-
expect(ChefConfig.logger).to_not receive(:
|
770
|
+
expect(ChefConfig.logger).to_not receive(:trace).with(/Defaulting to locale en_US.UTF-8 on Windows/)
|
771
|
+
expect(ChefConfig.logger).to_not receive(:trace).with(/No usable locale -a command found/)
|
772
772
|
expect(ChefConfig::Config.guess_internal_locale).to eq expected_locale
|
773
773
|
end
|
774
774
|
end
|
@@ -837,9 +837,9 @@ RSpec.describe ChefConfig::Config do
|
|
837
837
|
|
838
838
|
it "should default to 'en_US.UTF-8'" do
|
839
839
|
if is_windows
|
840
|
-
expect(ChefConfig.logger).to receive(:
|
840
|
+
expect(ChefConfig.logger).to receive(:trace).with("Defaulting to locale en_US.UTF-8 on Windows, until it matters that we do something else.")
|
841
841
|
else
|
842
|
-
expect(ChefConfig.logger).to receive(:
|
842
|
+
expect(ChefConfig.logger).to receive(:trace).with("No usable locale -a command found, assuming you have en_US.UTF-8 installed.")
|
843
843
|
end
|
844
844
|
expect(ChefConfig::Config.guess_internal_locale).to eq "en_US.UTF-8"
|
845
845
|
end
|
@@ -852,9 +852,13 @@ RSpec.describe ChefConfig::Config do
|
|
852
852
|
before(:all) do
|
853
853
|
@original_env = ENV.to_hash
|
854
854
|
ENV["http_proxy"] = nil
|
855
|
+
ENV["HTTP_PROXY"] = nil
|
855
856
|
ENV["https_proxy"] = nil
|
857
|
+
ENV["HTTPS_PROXY"] = nil
|
856
858
|
ENV["ftp_proxy"] = nil
|
859
|
+
ENV["FTP_PROXY"] = nil
|
857
860
|
ENV["no_proxy"] = nil
|
861
|
+
ENV["NO_PROXY"] = nil
|
858
862
|
end
|
859
863
|
|
860
864
|
after(:all) do
|
data/spec/unit/fips_spec.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chef-config
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 14.0.190
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Jacob
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-04-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mixlib-shellout
|
@@ -28,22 +28,16 @@ dependencies:
|
|
28
28
|
name: mixlib-config
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: 2.2.12
|
34
|
-
- - "<"
|
31
|
+
- - "~>"
|
35
32
|
- !ruby/object:Gem::Version
|
36
|
-
version: '
|
33
|
+
version: '2.0'
|
37
34
|
type: :runtime
|
38
35
|
prerelease: false
|
39
36
|
version_requirements: !ruby/object:Gem::Requirement
|
40
37
|
requirements:
|
41
|
-
- - "
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
version: 2.2.12
|
44
|
-
- - "<"
|
38
|
+
- - "~>"
|
45
39
|
- !ruby/object:Gem::Version
|
46
|
-
version: '
|
40
|
+
version: '2.0'
|
47
41
|
- !ruby/object:Gem::Dependency
|
48
42
|
name: fuzzyurl
|
49
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -90,16 +84,16 @@ dependencies:
|
|
90
84
|
name: rake
|
91
85
|
requirement: !ruby/object:Gem::Requirement
|
92
86
|
requirements:
|
93
|
-
- - "
|
87
|
+
- - "~>"
|
94
88
|
- !ruby/object:Gem::Version
|
95
|
-
version: '0'
|
89
|
+
version: '10.0'
|
96
90
|
type: :development
|
97
91
|
prerelease: false
|
98
92
|
version_requirements: !ruby/object:Gem::Requirement
|
99
93
|
requirements:
|
100
|
-
- - "
|
94
|
+
- - "~>"
|
101
95
|
- !ruby/object:Gem::Version
|
102
|
-
version: '0'
|
96
|
+
version: '10.0'
|
103
97
|
- !ruby/object:Gem::Dependency
|
104
98
|
name: rspec-core
|
105
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -160,6 +154,7 @@ files:
|
|
160
154
|
- lib/chef-config/mixin/credentials.rb
|
161
155
|
- lib/chef-config/mixin/dot_d.rb
|
162
156
|
- lib/chef-config/mixin/fuzzy_hostname_matcher.rb
|
157
|
+
- lib/chef-config/package_task.rb
|
163
158
|
- lib/chef-config/path_helper.rb
|
164
159
|
- lib/chef-config/version.rb
|
165
160
|
- lib/chef-config/windows.rb
|
@@ -189,7 +184,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
189
184
|
version: '0'
|
190
185
|
requirements: []
|
191
186
|
rubyforge_project:
|
192
|
-
rubygems_version: 2.7.
|
187
|
+
rubygems_version: 2.7.6
|
193
188
|
signing_key:
|
194
189
|
specification_version: 4
|
195
190
|
summary: Chef's default configuration and config loading
|