class Facter::Util::IP::Windows::Bindings4
Public Class Methods
new()
click to toggle source
# File lib/facter/util/ip/windows.rb, line 152 def initialize @key = 'SYSTEM\CurrentControlSet\Services\Tcpip\Linkage' end
Public Instance Methods
bindings()
click to toggle source
# File lib/facter/util/ip/windows.rb, line 156 def bindings require 'facter/util/registry' bindings = {} Facter::Util::Registry.hklm_read(@key, 'Bind').each_with_index do |entry, index| match_data = entry.match(/\\Device\\(\{.*\})/) unless match_data.nil? bindings[match_data[1]] = index end end bindings rescue {} end