Sha256: 2b30a7bd4a0f53c8c6651cafe4a8f61fb12b42620458974a48f90c05a4bb5f2a

Contents?: true

Size: 482 Bytes

Versions: 19

Compression:

Stored size: 482 Bytes

Contents

# frozen_string_literal: true

module Facts
  module Windows
    class Network6Interfaces
      FACT_NAME = 'network6_.*'
      TYPE = :legacy

      def call_the_resolver
        arr = []
        interfaces = Facter::Resolvers::Networking.resolve(:interfaces)
        interfaces&.each do |interface_name, info|
          arr << Facter::ResolvedFact.new("network6_#{interface_name}", info[:network6], :legacy) if info[:network6]
        end

        arr
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
facter-4.0.34 lib/facter/facts/windows/network6_interfaces.rb
facter-4.0.33 lib/facter/facts/windows/network6_interfaces.rb
facter-4.0.32 lib/facter/facts/windows/network6_interfaces.rb
facter-4.0.31 lib/facter/facts/windows/network6_interfaces.rb
facter-4.0.30 lib/facter/facts/windows/network6_interfaces.rb
facter-4.0.29 lib/facts/windows/network6_interfaces.rb
facter-4.0.28 lib/facts/windows/network6_interfaces.rb
facter-4.0.26 lib/facts/windows/network6_interfaces.rb
facter-4.0.25 lib/facts/windows/network6_interfaces.rb
facter-4.0.24 lib/facts/windows/network6_interfaces.rb
facter-4.0.23 lib/facts/windows/network6_interfaces.rb
facter-4.0.22 lib/facts/windows/network6_interfaces.rb
facter-4.0.21 lib/facts/windows/network6_interfaces.rb
facter-4.0.20 lib/facts/windows/network6_interfaces.rb
facter-4.0.19 lib/facts/windows/network6_interfaces.rb
facter-4.0.18 lib/facts/windows/network6_interfaces.rb
facter-4.0.17 lib/facts/windows/network6_interfaces.rb
facter-4.0.16 lib/facts/windows/network6_interfaces.rb
facter-4.0.15 lib/facts/windows/network6_interfaces.rb