summaryrefslogtreecommitdiff
path: root/lib/ohai/plugins/windows/cpu.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ohai/plugins/windows/cpu.rb')
-rw-r--r--lib/ohai/plugins/windows/cpu.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/ohai/plugins/windows/cpu.rb b/lib/ohai/plugins/windows/cpu.rb
index 4ffa9328..5c52a4d7 100644
--- a/lib/ohai/plugins/windows/cpu.rb
+++ b/lib/ohai/plugins/windows/cpu.rb
@@ -16,12 +16,12 @@
# limitations under the License.
#
-require 'ruby-wmi'
-
-Ohai.plugin do
+Ohai.plugin(:CPU) do
provides "cpu"
- collect_data do
+ collect_data(:windows) do
+ require 'ruby-wmi'
+
cpuinfo = Mash.new
cpu_number = 0
index = 0