Sha256: 9ac11046215a27e120b1128c1da2b918407915be040a4d8f4d07aa6b66a1979c
Contents?: true
Size: 477 Bytes
Versions: 50
Compression:
Stored size: 477 Bytes
Contents
# frozen_string_literal: true module Facts module Macosx class MacaddressInterfaces FACT_NAME = 'macaddress_.*' TYPE = :legacy def call_the_resolver arr = [] interfaces = Facter::Resolvers::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