chef-utils 17.7.22 → 17.9.26

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: d50bcd2d0a9f2374304c0315d02ea07e97c166990df1ae37f662386efe5957c7
4
- data.tar.gz: 31e5fd4b536bfb14eeefef7cd01d3e50ce6a600bbc910f81c43a40dde5f78ae9
3
+ metadata.gz: f47014045f587dc8068916558ed55aadbb57d0fffaeee8d28b68f05339aba0ec
4
+ data.tar.gz: 7570547a79fe336b7b6abb992cbe0a1c0c11af19202256e750eef0c3479e4610
5
5
  SHA512:
6
- metadata.gz: 00e33b9385f556e691b2670c80c4f83a1f94ea63f88526d8d3a7a97023ea3c0cf9e35a853babd338b92205de680e8f21706a48ddeb99a39ee4e40a0b360d5e5c
7
- data.tar.gz: 1324ab622022dce1d7f051e744d6808a8b1a17b025a6ff0bc293e231f17fbbc8143badce65d81d8632775cd888a335a4a2c1ef8a4b510aa641739c1131c428e9
6
+ metadata.gz: fa28f826fd0f54abdbb3e81c51891382cff05c9c5b9d71507de470d331bf1bf386adb6464f796254466a97e115d69bed5b37d87ec24bdb45a13aaa576d74f942
7
+ data.tar.gz: fd7939a8fae9ea08d5e0e38b667260edc93bc912d428d18f609f555e26fb9a48a1625b367e61f0ad9751816ffb059dc95a652781d8ff36233575acfb6db06583
@@ -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.7.22"
19
+ VERSION = "17.9.26"
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.7.22
4
+ version: 17.9.26
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-25 00:00:00.000000000 Z
11
+ date: 2022-01-04 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