Module: Facter::Util::Registry

Defined in:
lib/facter/util/registry.rb

Class Method Summary collapse

Class Method Details

.hklm_read(key, value) ⇒ Object



3
4
5
6
7
8
9
# File 'lib/facter/util/registry.rb', line 3

def hklm_read(key, value)
  require 'win32/registry'
  reg = Win32::Registry::HKEY_LOCAL_MACHINE.open(key)
  rval = reg[value]
  reg.close
  rval
end