Sha256: 09ca90cea4e304034c0dbcd36cc008b69620e0a041a6892da248d2ef2c0c2f2e
Contents?: true
Size: 487 Bytes
Versions: 50
Compression:
Stored size: 487 Bytes
Contents
# frozen_string_literal: true module Facts module Windows class MacaddressInterfaces FACT_NAME = 'macaddress_.*' TYPE = :legacy def call_the_resolver arr = [] interfaces = Facter::Resolvers::Windows::Networking.resolve(:interfaces) interfaces&.each do |interface_name, info| arr << Facter::ResolvedFact.new("macaddress_#{interface_name}", info[:mac], :legacy) if info[:mac] end arr end end end end
Version data entries
50 entries across 50 versions & 1 rubygems