Sha256: 97506bf341bfbb3714bc10cca61977c867f2530e1dc1a8fcb07a251782402182

Contents?: true

Size: 426 Bytes

Versions: 5

Compression:

Stored size: 426 Bytes

Contents

# frozen_string_literal: true

module Facts
  module Linux
    class Interfaces
      FACT_NAME = 'interfaces'
      TYPE = :legacy

      def call_the_resolver
        fact_value = Facter::Resolvers::NetworkingLinux.resolve(:interfaces)

        Facter::ResolvedFact.new(FACT_NAME, fact_value && !fact_value.empty? ? fact_value.keys.sort.join(',') : nil,
                                 :legacy)
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
facter-4.0.51 lib/facter/facts/linux/interfaces.rb
facter-4.0.50 lib/facter/facts/linux/interfaces.rb
facter-4.0.49 lib/facter/facts/linux/interfaces.rb
facter-4.0.48 lib/facter/facts/linux/interfaces.rb
facter-4.0.47 lib/facter/facts/linux/interfaces.rb