Sha256: a07152bc4d3b001aa09139f4f36c2b98d186b07996b4b521a4173142d58d6976
Contents?: true
Size: 489 Bytes
Versions: 5
Compression:
Stored size: 489 Bytes
Contents
# frozen_string_literal: true module Facts module Macosx class Netmask6Interfaces FACT_NAME = 'netmask6_.*' TYPE = :legacy def call_the_resolver arr = [] interfaces = Facter::Resolvers::Macosx::Networking.resolve(:interfaces) interfaces&.each do |interface_name, info| arr << Facter::ResolvedFact.new("netmask6_#{interface_name}", info[:netmask6], :legacy) if info[:netmask6] end arr end end end end
Version data entries
5 entries across 5 versions & 1 rubygems