chef-utils 17.10.19 → 18.0.161
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/chef-utils/dist.rb +6 -3
- data/lib/chef-utils/dsl/platform_family.rb +6 -1
- data/lib/chef-utils/version.rb +1 -1
- data/spec/unit/dsl/platform_family_spec.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d505e652fdce64100eece4947fa54d9261ba8a80b24f6096f02fc7e9c009bc6b
|
4
|
+
data.tar.gz: e381d10614a25934e4123f55b4e4bc91ce9d6926e4a777fc93af578892387065
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 68a27c57f3f3319314d1c1779b26af258a7b052aa51fa255f0e4987c93960a9ea725e7e3bb48ad5ec5b6956e4acb8f58b6ab5855562008c3e997a14335cfb161
|
7
|
+
data.tar.gz: 6d5e6e9852c14d1cd77dd63ed73bb20a51b40f8bafcabdfb7c12c5ce299529d9810b5dd7d644c4aba8b8efb699591c0f41ac25fceb4216f6900ec073903fb065
|
data/lib/chef-utils/dist.rb
CHANGED
@@ -64,6 +64,9 @@ module ChefUtils
|
|
64
64
|
|
65
65
|
# The client's gem
|
66
66
|
GEM = "chef"
|
67
|
+
|
68
|
+
# The client's container image
|
69
|
+
CONTAINER_REF = "chef/chef"
|
67
70
|
end
|
68
71
|
|
69
72
|
class Inspec
|
@@ -114,11 +117,11 @@ module ChefUtils
|
|
114
117
|
# The server's configuration utility
|
115
118
|
SERVER_CTL = "chef-server-ctl"
|
116
119
|
|
117
|
-
# OS user for server
|
118
|
-
SYSTEM_USER = "opscode"
|
119
|
-
|
120
120
|
# The server`s docs URL
|
121
121
|
SERVER_DOCS = "https://docs.chef.io/server/"
|
122
|
+
|
123
|
+
# OS user for server
|
124
|
+
SYSTEM_USER = "opscode"
|
122
125
|
end
|
123
126
|
|
124
127
|
class Solo
|
@@ -270,12 +270,17 @@ module ChefUtils
|
|
270
270
|
# Determine if the Ruby VM is currently running on a Windows node (ChefSpec can never stub
|
271
271
|
# this behavior, so this is useful for code which can never be parsed on a non-Windows box).
|
272
272
|
#
|
273
|
+
# April 2022 - Note that we changed the platform identifier from 'mingw32' to 'mingw'
|
274
|
+
# We did this because Ruby 3.1 introduces the new universal windows platform of 'x64-mingw-ucrt'
|
275
|
+
# We updated the existing regex snippet to capture both the 32-bit platform and the new x64
|
276
|
+
# universal platform
|
277
|
+
#
|
273
278
|
# @since 15.5
|
274
279
|
#
|
275
280
|
# @return [Boolean]
|
276
281
|
#
|
277
282
|
def windows_ruby?
|
278
|
-
!!(RUBY_PLATFORM =~ /mswin|
|
283
|
+
!!(RUBY_PLATFORM =~ /mswin|mingw|windows/)
|
279
284
|
end
|
280
285
|
|
281
286
|
#
|
data/lib/chef-utils/version.rb
CHANGED
@@ -210,7 +210,7 @@ RSpec.describe ChefUtils::DSL::PlatformFamily do
|
|
210
210
|
end
|
211
211
|
|
212
212
|
context "node-independent windows APIs" do
|
213
|
-
if RUBY_PLATFORM.match?(/mswin|
|
213
|
+
if RUBY_PLATFORM.match?(/mswin|mingw|windows/)
|
214
214
|
it "reports true for :windows_ruby?" do
|
215
215
|
expect(described_class.windows_ruby?).to be true
|
216
216
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chef-utils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 18.0.161
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chef Software, Inc
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-10-
|
11
|
+
date: 2022-10-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|
@@ -94,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
94
94
|
- !ruby/object:Gem::Version
|
95
95
|
version: '0'
|
96
96
|
requirements: []
|
97
|
-
rubygems_version: 3.
|
97
|
+
rubygems_version: 3.3.7
|
98
98
|
signing_key:
|
99
99
|
specification_version: 4
|
100
100
|
summary: Basic utility functions for Core Chef Infra development
|