chef-config 15.11.3 → 15.15.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
  SHA256:
3
- metadata.gz: c7f53ec80622768fb0e22e8ec5cecfaa0f3de70d34d03dd3abc660aa9288f3c3
4
- data.tar.gz: 30cc338ec672b76d21881856718efedf61e54efd7fd1941c6844fced9feb7f5c
3
+ metadata.gz: be1eaced7f132dc2bbfcd73acf0ccbd15e27e382239a72b0f9d12142ce99465e
4
+ data.tar.gz: 74f04e3867707c710ed4464f017d70a944fcfae647094133217f32dbcff427d7
5
5
  SHA512:
6
- metadata.gz: 2e1beef453edcdde7d8f3c58543380697c0dc71735677a91d0ee180a455a302721d7e89d41e8078f5dd0dcc849a41b8f0df7e313298f5f303c2b08b6fcaf93f5
7
- data.tar.gz: 5f74739a9e17d875f6eede63b5819c68f8f98b485dbeebe1bf30fb981556b55da880591a19a545f05e60e77c222548e708ebc6812181922ee6fef74e776ebd74
6
+ metadata.gz: b9521bc159c5f934e7e3d827965836a09bbdf8b8212dd36939a76fa92fd811eae8decfb092c2d8c7114cf9c21682c920d7255908d474457f944c023145ec2432
7
+ data.tar.gz: 4c657e94c80f3c8c5ed9906fa0932dedd71456c99db29f43d54e0a7b4bc16154fe00e3e8aacc460d4737bfba9327213c0be92483b640e90a5036e6a61e016161
@@ -1,5 +1,4 @@
1
- # coding: utf-8
2
- lib = File.expand_path("../lib", __FILE__)
1
+ lib = File.expand_path("lib", __dir__)
3
2
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
3
  require "chef-config/version"
5
4
 
@@ -359,7 +359,7 @@ module ChefConfig
359
359
  #
360
360
  # @param path [String]
361
361
  def self.path_accessible?(path)
362
- File.exists?(path) && File.readable?(path) && File.writable?(path)
362
+ File.exist?(path) && File.readable?(path) && File.writable?(path)
363
363
  end
364
364
 
365
365
  # Where cookbook files are stored on the server (by content checksum)
@@ -483,7 +483,7 @@ module ChefConfig
483
483
  # 11 (true) or Chef Server 12 (false). Chef Zero can still serve
484
484
  # policyfile objects in Chef 11 mode, as long as `repo_mode` is set to
485
485
  # "hosted_everything". The primary differences are:
486
- # * Chef 11 mode doesn't support multi-tennant, so there is no
486
+ # * Chef 11 mode doesn't support multi-tenant, so there is no
487
487
  # distinction between global and org-specific objects (since there are
488
488
  # no orgs).
489
489
  # * Chef 11 mode doesn't expose RBAC objects
@@ -531,7 +531,7 @@ module ChefConfig
531
531
  # switching based on it is almost certainly doing the wrong thing and papering over
532
532
  # bugs that should be fixed in one or the other class, and will be brittle and destined
533
533
  # to break in the future (and not necessarily on a major version bump). Checking this value
534
- # is also not sufficent to determine if we are not running against a server since this can
534
+ # is also not sufficient to determine if we are not running against a server since this can
535
535
  # be unset but :local_mode may be set. It would be accurate to check both :solo and :local_mode
536
536
  # to determine if we're not running against a server, but the more semantically accurate test
537
537
  # is going to be combining :solo_legacy_mode and :local_mode.
@@ -956,7 +956,7 @@ module ChefConfig
956
956
  # distribution.
957
957
  #
958
958
  # The disadvantages of lazily loading files are that users some time find it
959
- # confusing that their cookbooks are not fully synchronzied to the cache initially,
959
+ # confusing that their cookbooks are not fully synchronized to the cache initially,
960
960
  # and more importantly the time-sensitive URLs which are in the manifest may time
961
961
  # out on long Chef runs before the resource that uses the file is converged
962
962
  # (leading to many confusing 403 errors on template/cookbook_file resources).
@@ -1113,7 +1113,7 @@ module ChefConfig
1113
1113
  end
1114
1114
 
1115
1115
  # Given a scheme, host, and port, return the correct proxy URI based on the
1116
- # set environment variables, unless exluded by no_proxy, in which case nil
1116
+ # set environment variables, unless excluded by no_proxy, in which case nil
1117
1117
  # is returned
1118
1118
  def self.proxy_uri(scheme, host, port)
1119
1119
  proxy_env_var = ENV["#{scheme}_proxy"].to_s.strip
@@ -19,5 +19,15 @@ module ChefConfig
19
19
  # The legacy conf folder: C:/opscode/chef. Specifically the "opscode" part
20
20
  # DIR_SUFFIX is appended to it in code where relevant
21
21
  LEGACY_CONF_DIR = "opscode".freeze
22
+
23
+ # Enable forcing Chef EULA
24
+ ENFORCE_LICENSE = true
25
+
26
+ # The servers's alias (chef-server)
27
+ SERVER = "chef-server".freeze
28
+
29
+ # The server's configuration utility
30
+ SERVER_CTL = "chef-server-ctl".freeze
31
+
22
32
  end
23
33
  end
@@ -130,16 +130,16 @@ module ChefConfig
130
130
  end
131
131
 
132
132
  # This is the INVERSE of Pathname#cleanpath, it converts forward
133
- # slashes to backwhacks for Windows. Since the Ruby API and the
133
+ # slashes to backslashes for Windows. Since the Ruby API and the
134
134
  # Windows APIs all consume forward slashes, this helper function
135
135
  # should only be used for *DISPLAY* logic to send strings back
136
- # to the user with backwhacks. Internally, filename paths should
136
+ # to the user with backslashes. Internally, filename paths should
137
137
  # generally be stored with forward slashes for consistency. It is
138
138
  # not necessary or desired to blindly convert pathnames to have
139
- # backwhacks on Windows.
139
+ # backslashes on Windows.
140
140
  #
141
141
  # Generally, if the user isn't going to be seeing it, you should be
142
- # using Pathname#cleanpath intead of this function.
142
+ # using Pathname#cleanpath instead of this function.
143
143
  def self.cleanpath(path)
144
144
  path = Pathname.new(path).cleanpath.to_s
145
145
  # ensure all forward slashes are backslashes
@@ -265,7 +265,7 @@ module ChefConfig
265
265
  end
266
266
  end
267
267
 
268
- # Determine if the given path is protected by OS X System Integrity Protection.
268
+ # Determine if the given path is protected by macOS System Integrity Protection.
269
269
  def self.is_sip_path?(path, node)
270
270
  if node["platform"] == "mac_os_x" && Gem::Version.new(node["platform_version"]) >= Gem::Version.new("10.11")
271
271
  # @todo: parse rootless.conf for this?
@@ -282,7 +282,7 @@ module ChefConfig
282
282
  end
283
283
  end
284
284
 
285
- # Determine if the given path is on the exception list for OS X System Integrity Protection.
285
+ # Determine if the given path is on the exception list for macOS System Integrity Protection.
286
286
  def self.writable_sip_path?(path)
287
287
  # todo: parse rootless.conf for this?
288
288
  sip_exceptions = [
@@ -14,6 +14,6 @@
14
14
  # limitations under the License.
15
15
 
16
16
  module ChefConfig
17
- CHEFCONFIG_ROOT = File.expand_path("../..", __FILE__)
18
- VERSION = "15.11.3".freeze
17
+ CHEFCONFIG_ROOT = File.expand_path("..", __dir__)
18
+ VERSION = "15.15.0".freeze
19
19
  end
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: 15.11.3
4
+ version: 15.15.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: 2020-05-22 00:00:00.000000000 Z
11
+ date: 2021-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chef-utils
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 15.11.3
19
+ version: 15.15.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: 15.11.3
26
+ version: 15.15.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: mixlib-shellout
29
29
  requirement: !ruby/object:Gem::Requirement