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