summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoradamedx <adamed@opscode.com>2014-05-03 06:40:37 -0700
committeradamedx <adamed@opscode.com>2014-05-18 23:16:04 -0700
commitd7c4987c33f6bc36b7bb7eb0b76b2a8fb4f9f42c (patch)
tree116ca3bf1f141b06be274ef859cd02a78f873986
parentac2a80ae7450a7ee810189ce3f1189e975bdf229 (diff)
downloadohai-d7c4987c33f6bc36b7bb7eb0b76b2a8fb4f9f42c.tar.gz
Move Windows-only deps to Windows section
-rw-r--r--lib/ohai/plugins/kernel.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/ohai/plugins/kernel.rb b/lib/ohai/plugins/kernel.rb
index 366a1ac5..702b94b8 100644
--- a/lib/ohai/plugins/kernel.rb
+++ b/lib/ohai/plugins/kernel.rb
@@ -22,9 +22,6 @@
# limitations under the License.
#
-require 'win32ole'
-require 'ohai/wmi'
-
Ohai.plugin(:Kernel) do
provides "kernel", "kernel/modules"
@@ -158,6 +155,9 @@ Ohai.plugin(:Kernel) do
end
collect_data(:windows) do
+ require 'win32ole'
+ require 'ohai/wmi'
+
WIN32OLE.codepage = WIN32OLE::CP_UTF8
wmi = WmiRepository.new