summaryrefslogtreecommitdiff
path: root/spec/support/platform_helpers.rb
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-12-04 19:27:46 -0800
committerTim Smith <tsmith@chef.io>2018-12-04 19:29:00 -0800
commit23c882933a5121bcb8441b57dc363c61a7328341 (patch)
treeaeb5e7ca580d6633cbf319599245dc698bc7647e /spec/support/platform_helpers.rb
parent3584550db722a9c45a5d98c36eb93d7b814f801f (diff)
downloadchef-functional_cleanup.tar.gz
Cleanup some functional helpersfunctional_cleanup
Rename the macos helpers. Remove unused helpers to check for RHEL 5 and < Windows 2008 R2. Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'spec/support/platform_helpers.rb')
-rw-r--r--spec/support/platform_helpers.rb13
1 files changed, 0 insertions, 13 deletions
diff --git a/spec/support/platform_helpers.rb b/spec/support/platform_helpers.rb
index 5ae9c01722..c4ab1db265 100644
--- a/spec/support/platform_helpers.rb
+++ b/spec/support/platform_helpers.rb
@@ -51,15 +51,6 @@ def windows_domain_joined?
computer_system["partofdomain"]
end
-def windows_2008r2_or_later?
- return false unless windows?
- return false unless host_version
- components = host_version.split(".").map do |component|
- component.to_i
- end
- components.length >= 2 && components[0] >= 6 && components[1] >= 1
-end
-
def windows_2012r2?
return false unless windows?
(host_version && host_version.start_with?("6.3"))
@@ -167,10 +158,6 @@ def rhel?
!!(ohai[:platform_family] == "rhel")
end
-def rhel5?
- rhel? && !!(ohai[:platform_version].to_i == 5)
-end
-
def rhel6?
rhel? && !!(ohai[:platform_version].to_i == 6)
end