Sha256: 7c18bd0c717cf531df14236c0bcd3c20a5c8f60c9830879df8e84c6dd2654d57

Contents?: true

Size: 380 Bytes

Versions: 2

Compression:

Stored size: 380 Bytes

Contents

# frozen_string_literal: true

module Facter
  module Debian
    class NetworkingHostname
      FACT_NAME = 'networking.hostname'
      ALIASES = 'hostname'

      def call_the_resolver
        fact_value = Facter::Resolvers::Hostname.resolve(:hostname)
        [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/debian/networking/hostname.rb
facter-4.0.7.pre lib/facts/debian/networking/hostname.rb