summaryrefslogtreecommitdiff
path: root/spec/support
diff options
context:
space:
mode:
authorAdam Edwards <adamed@opscode.com>2014-05-13 23:34:24 -0700
committersersut <serdar@opscode.com>2014-05-30 13:05:48 -0700
commit2f11b7f0806e2ac81e68cdd7fccff280e70bc6f3 (patch)
treeded26108a8ac5417fc48cb2fb916a3ed967300cd /spec/support
parentb8238c9c6bb59b906554e8d9bad4169589e5071d (diff)
downloadchef-2f11b7f0806e2ac81e68cdd7fccff280e70bc6f3.tar.gz
Use wmi-lite gem dependency for wmi access
Diffstat (limited to 'spec/support')
-rw-r--r--spec/support/platform_helpers.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/support/platform_helpers.rb b/spec/support/platform_helpers.rb
index 37ce5a6ca7..dc626a926f 100644
--- a/spec/support/platform_helpers.rb
+++ b/spec/support/platform_helpers.rb
@@ -27,11 +27,11 @@ def windows?
!!(RUBY_PLATFORM =~ /mswin|mingw|windows/)
end
-require 'chef/win32/wmi' if windows?
+require 'wmi-lite/wmi' if windows?
def windows_domain_joined?
return false unless windows?
- wmi = Chef::ReservedNames::Win32::WMI.new
+ wmi = WmiLite::Wmi.new
computer_system = wmi.first_of('Win32_ComputerSystem')
computer_system['partofdomain']
end
@@ -39,7 +39,7 @@ end
def windows_win2k3?
return false unless windows?
- wmi = Chef::ReservedNames::Win32::WMI.new
+ wmi = WmiLite::Wmi.new
host = wmi.first_of('Win32_OperatingSystem')
(host['version'] && host['version'].start_with?("5.2"))
end