diff options
author | Sascha Bates <sascha.bates@gmail.com> | 2012-06-03 15:00:27 -0500 |
---|---|---|
committer | Bryan McLellan <btm@opscode.com> | 2012-08-03 13:23:55 -0700 |
commit | 95076c5e4a24a00ee3c058e4a7162a4d1dd8b047 (patch) | |
tree | d47794bed4a318cc40ad2000658232b0b19e8a45 | |
parent | 288d74ac50148b5cdc6604a8cb744fe69abf7c8a (diff) | |
download | ohai-95076c5e4a24a00ee3c058e4a7162a4d1dd8b047.tar.gz |
renaming a file
-rw-r--r-- | lib/ohai/plugins/windows/kernel_devices | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/lib/ohai/plugins/windows/kernel_devices b/lib/ohai/plugins/windows/kernel_devices deleted file mode 100644 index 69da6c39..00000000 --- a/lib/ohai/plugins/windows/kernel_devices +++ /dev/null @@ -1,39 +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' - -WIN32OLE.codepage = WIN32OLE::CP_UTF8 - -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 |