summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaire McQuin <clairemcquin@seamcquin100loaner.local>2014-01-07 13:07:34 -0800
committerClaire McQuin <clairemcquin@seamcquin100loaner.local>2014-01-07 13:07:34 -0800
commit7f6ca7c0b40f966b7c0307b8e13984b74518c78d (patch)
treeec28565a61c005c082442261c1487ce9b44ad687
parent12e4a5b607ad45c91cc488f6a0308268648eb7c4 (diff)
downloadohai-7f6ca7c0b40f966b7c0307b8e13984b74518c78d.tar.gz
remove plugin windows/kernel_devices.rb, included in :windows collect_data block of Kernel plugin
-rw-r--r--lib/ohai/plugins/windows/kernel_devices.rb45
1 files changed, 0 insertions, 45 deletions
diff --git a/lib/ohai/plugins/windows/kernel_devices.rb b/lib/ohai/plugins/windows/kernel_devices.rb
deleted file mode 100644
index 2365d5bb..00000000
--- a/lib/ohai/plugins/windows/kernel_devices.rb
+++ /dev/null
@@ -1,45 +0,0 @@
-#
-# Author:: James Gartrell (<jgartrel@gmail.com>)
-# Copyright:: Copyright (c) 2009 Opscode, Inc.
-# License:: Apache License, Version 2.0
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-require 'ruby-wmi'
-
-Ohai.plugin do
- provides "kernel"
-
- WIN32OLE.codepage = WIN32OLE::CP_UTF8
-
- collect_data do
- kext = Mash.new
- pnp_drivers = Mash.new
-
- drivers = WMI::Win32_PnPSignedDriver.find(:all)
- drivers.each do |driver|
- pnp_drivers[driver.DeviceID] = Mash.new
- driver.properties_.each do |p|
- pnp_drivers[driver.DeviceID][p.name.wmi_underscore.to_sym] = driver.send(p.name)
- end
- if driver.DeviceName
- kext[driver.DeviceName] = pnp_drivers[driver.DeviceID]
- kext[driver.DeviceName][:version] = pnp_drivers[driver.DeviceID][:driver_version]
- kext[driver.DeviceName][:date] = pnp_drivers[driver.DeviceID][:driver_date] ? pnp_drivers[driver.DeviceID][:driver_date].to_s[0..7] : nil
- end
- end
-
- kernel[:pnp_drivers] = pnp_drivers
- kernel[:modules] = kext
- end
-end