diff options
author | Tim Smith <tsmith84@gmail.com> | 2020-11-24 12:28:38 -0800 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-11-24 12:45:07 -0800 |
commit | f2523cb55f63c94dfd393adb490863e48a383e0b (patch) | |
tree | 0cd5534f397fe80ddffb17a3a6f6ebcf968ebc56 /spec/support/platform_helpers.rb | |
parent | 3d7728a6ae3f7baed8c3d6bd4f1612607f6bce74 (diff) | |
download | chef-remove_dscl.tar.gz |
Fully remove user resource support for macOS < 10.14remove_dscl
This builds on the removal of macOS 10.13 from the build matrix in https://github.com/chef/chef/pull/10680. With 10.14+ required for Chef packages we can safely remove the dscl_user resource and just assume 10.14+ when creating users.
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'spec/support/platform_helpers.rb')
-rw-r--r-- | spec/support/platform_helpers.rb | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/spec/support/platform_helpers.rb b/spec/support/platform_helpers.rb index b29c860f30..83f2fcf172 100644 --- a/spec/support/platform_helpers.rb +++ b/spec/support/platform_helpers.rb @@ -92,14 +92,6 @@ def windows_user_right?(right) Chef::ReservedNames::Win32::Security.get_account_right(ENV["USERNAME"]).include?(right) end -def macos_1013? - macos? && Gem::Requirement.new("~> 10.13.0").satisfied_by?(Gem::Version.new(ohai[:platform_version])) -end - -def macos_gte_1014? - macos? && Gem::Requirement.new(">= 10.14").satisfied_by?(Gem::Version.new(ohai[:platform_version])) -end - # detects if the hardware is 64-bit (evaluates to true in "WOW64" mode in a 32-bit app on a 64-bit system) def windows64? windows? && ( ENV["PROCESSOR_ARCHITECTURE"] == "AMD64" || ENV["PROCESSOR_ARCHITEW6432"] == "AMD64" ) |