chef-utils 17.6.18 → 17.9.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f432a8bd5026f0304dcb2db315823cea935b9e42a1a7e9aaef3d616e28448403
4
- data.tar.gz: 1219f6fa58080917a81f200d8daa75598ddf0a41c887d6f0b5e3ee9fcdca7209
3
+ metadata.gz: 50daaaba0f5c8b5f6802acc85bc1866207d38185155b457ab320000c4a55b2bf
4
+ data.tar.gz: fcd8c5d1dc88fa0a710098165cdd20c7b445e76b72336db18fa490115d13acc5
5
5
  SHA512:
6
- metadata.gz: d6776291973115024d8519a48e0981262f59a43d27ea484c5a7017e206d2e85aa6f71e645f9860c7c193007b7d27c72aaa1eb45b170915f6dad1e70aa5e19819
7
- data.tar.gz: 3caa14fb26bf3354eed8f9de89c10b41100d0fb24b47cea9e15f0fbb818d399c5232cd5e56c7199adc651e7bf389ff54aaca9f2821062bdc1b92f2ec0f3200c8
6
+ metadata.gz: c6d24fbbe41376b57d7e93baa81766fb091d69446a3506bbdcfd36cbca8bc0ea7a95c9a565e43126cb83f3f8a9c13f6d5adb17281ff338db85fc52dd248f9d9d
7
+ data.tar.gz: d7165e5d5151f3727bac95ce41b9ca9d8af13bd7621f749b399fe460bfffbfffad81a0cab378e3107b49620550ccb3529d264ad0d8cd95a09a40783e365cb8c2
@@ -79,7 +79,7 @@ module ChefUtils
79
79
  WEBSITE = "https://chef.io"
80
80
 
81
81
  # The downloads site
82
- DOWNLOADS_URL = "downloads.chef.io"
82
+ DOWNLOADS_URL = "chef.io/downloads"
83
83
 
84
84
  # The legacy conf folder: C:/opscode/chef. Specifically the "opscode" part
85
85
  # DIR_SUFFIX is appended to it in code where relevant
@@ -140,6 +140,28 @@ module ChefUtils
140
140
  node.dig("virtualization", "system") == "vmware" && node.dig("virtualization", "role") == "host"
141
141
  end
142
142
 
143
+ # Determine if the current node is virtualized on VMware Desktop (Fusion/Player/Workstation).
144
+ #
145
+ # @param [Chef::Node] node
146
+ # @since 17.9
147
+ #
148
+ # @return [Boolean]
149
+ #
150
+ def vmware_desktop?(node = __getnode)
151
+ node.dig("virtualization", "system") == "vmware" && node.dig("vmware", "host", "type") == "vmware_desktop"
152
+ end
153
+
154
+ # Determine if the current node is virtualized on VMware vSphere (ESX).
155
+ #
156
+ # @param [Chef::Node] node
157
+ # @since 17.9
158
+ #
159
+ # @return [Boolean]
160
+ #
161
+ def vmware_vsphere?(node = __getnode)
162
+ node.dig("virtualization", "system") == "vmware" && node.dig("vmware", "host", "type") == "vmware_vsphere"
163
+ end
164
+
143
165
  # Determine if the current node is an openvz guest.
144
166
  #
145
167
  # @param [Chef::Node] node
@@ -16,5 +16,5 @@
16
16
 
17
17
  module ChefUtils
18
18
  CHEFUTILS_ROOT = File.expand_path("..", __dir__)
19
- VERSION = "17.6.18"
19
+ VERSION = "17.9.18"
20
20
  end
@@ -79,7 +79,7 @@ RSpec.describe ChefUtils::DSL::DefaultPaths do
79
79
  end
80
80
 
81
81
  it "prepends to an existing path" do
82
- env = { "PATH" => '%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\\' }
82
+ env = { "PATH" => "%SystemRoot%\\system32;%SystemRoot%;%SystemRoot%\\System32\\Wbem;%SYSTEMROOT%\\System32\\WindowsPowerShell\\v1.0\\" }
83
83
  expect(test_instance.default_paths(env)).to eql("#{Gem.bindir};#{RbConfig::CONFIG["bindir"]};%SystemRoot%\\system32;%SystemRoot%;%SystemRoot%\\System32\\Wbem;%SYSTEMROOT%\\System32\\WindowsPowerShell\\v1.0\\")
84
84
  end
85
85
  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: 17.6.18
4
+ version: 17.9.18
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: 2021-10-01 00:00:00.000000000 Z
11
+ date: 2021-12-23 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.2.22
97
+ rubygems_version: 3.2.32
98
98
  signing_key:
99
99
  specification_version: 4
100
100
  summary: Basic utility functions for Core Chef Infra development