Sha256: 1c930bb48ad4c7df2db83e0800535fa29012cc674ce42c27c916dda0453e95df

Contents?: true

Size: 414 Bytes

Versions: 7

Compression:

Stored size: 414 Bytes

Contents

# frozen_string_literal: true

module Facts
  module Linux
    module Networking
      class Fqdn
        FACT_NAME = 'networking.fqdn'
        ALIASES = 'fqdn'

        def call_the_resolver
          fact_value = Facter::Resolvers::Hostname.resolve(:fqdn)
          [Facter::ResolvedFact.new(FACT_NAME, fact_value), Facter::ResolvedFact.new(ALIASES, fact_value, :legacy)]
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
facter-4.0.28 lib/facts/linux/networking/fqdn.rb
facter-4.0.26 lib/facts/linux/networking/fqdn.rb
facter-4.0.25 lib/facts/linux/networking/fqdn.rb
facter-4.0.24 lib/facts/linux/networking/fqdn.rb
facter-4.0.23 lib/facts/linux/networking/fqdn.rb
facter-4.0.22 lib/facts/linux/networking/fqdn.rb
facter-4.0.21 lib/facts/linux/networking/fqdn.rb