chef-utils 17.8.25 → 17.9.18

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: 1dfe5cdab67b0a233af00f01ad7024f3b607cc9628fa687672373d4110c110e0
4
- data.tar.gz: 2295819c345737f63542b334617af983c4970f66ce0d7cb00d7a08b283581e93
3
+ metadata.gz: 50daaaba0f5c8b5f6802acc85bc1866207d38185155b457ab320000c4a55b2bf
4
+ data.tar.gz: fcd8c5d1dc88fa0a710098165cdd20c7b445e76b72336db18fa490115d13acc5
5
5
  SHA512:
6
- metadata.gz: 50743bb3d906f5d6291c48b72ef1800f0a33c2e9c61feeff291f9f46c9692e160b7a02cfe70236ed225661d2f54c6e1831f01ec9c150bdfa3e321bb354425ee1
7
- data.tar.gz: 4b427caec6edc77c044b326de6e18187ecfa17d33ada86400fd792a0d6aff7a24abe3538ed463ab0b58b650e645fbdcb1a6694ef9e97e3e8113bce73a817cddf
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.8.25"
19
+ VERSION = "17.9.18"
20
20
  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.8.25
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-12-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