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