Sha256: 9ea3976d1cf25113385512f3f65ee8d1a77d7891f1669b27d76475057f3a649d

Contents?: true

Size: 359 Bytes

Versions: 2

Compression:

Stored size: 359 Bytes

Contents

# frozen_string_literal: true

module Facter
  module Windows
    class NetworkingIp
      FACT_NAME = 'networking.ip'
      ALIASES = 'ipaddress'

      def call_the_resolver
        fact_value = Resolvers::Networking.resolve(:ip)

        [ResolvedFact.new(FACT_NAME, fact_value), ResolvedFact.new(ALIASES, fact_value, :legacy)]
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
facter-4.0.8.pre lib/facts/windows/networking/ip.rb
facter-4.0.7.pre lib/facts/windows/networking/ip.rb