summaryrefslogtreecommitdiff
path: root/spec/support
diff options
context:
space:
mode:
authornimisha <nimisha.sharad@msystechnologies.com>2017-06-15 17:44:17 +0530
committernimisha <nimisha.sharad@msystechnologies.com>2017-06-19 12:09:15 +0530
commit326e6eb64d463aee2e0889b7adbae5696ba3ab6f (patch)
tree8ab354021a38cd11360d17298517d0d1e9adf884 /spec/support
parente1695dc8005ea7d24ffc24c75098b976adbd1c9c (diff)
downloadchef-326e6eb64d463aee2e0889b7adbae5696ba3ab6f.tar.gz
Fixing build failures of Windows Server 2016
Signed-off-by: nimisha <nimisha.sharad@msystechnologies.com>
Diffstat (limited to 'spec/support')
-rw-r--r--spec/support/platform_helpers.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/support/platform_helpers.rb b/spec/support/platform_helpers.rb
index 019cb9a912..2d4dd2ff7e 100644
--- a/spec/support/platform_helpers.rb
+++ b/spec/support/platform_helpers.rb
@@ -70,6 +70,11 @@ def windows_2012r2?
(host_version && host_version.start_with?("6.3"))
end
+def windows_10_or_2016?
+ return false unless windows?
+ (host_version && host_version.start_with?("10.0"))
+end
+
def host_version
@host_version ||= begin
wmi = WmiLite::Wmi.new