Sha256: 88da8812dfb2812ef46ac443dcbea147276d73de0c8ae110f48f5164521973ad
Contents?: true
Size: 452 Bytes
Versions: 6
Compression:
Stored size: 452 Bytes
Contents
# frozen_string_literal: true module Facts module Windows class IpaddressInterfaces FACT_NAME = 'ipaddress_.*' def call_the_resolver arr = [] interfaces = Facter::Resolvers::Networking.resolve(:interfaces) interfaces&.each do |interface_name, info| arr << Facter::ResolvedFact.new("ipaddress_#{interface_name}", info[:ip], :legacy) if info[:ip] end arr end end end end
Version data entries
6 entries across 6 versions & 1 rubygems