# File lib/facter/util/ip/windows.rb, line 152 def initialize @key = 'SYSTEM\CurrentControlSet\Services\Tcpip\Linkage' end
# 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