Sha256: 4fe22bdb1f68a9ef00347beab2f8dadf33aa53da7016707c235981e9e4905547

Contents?: true

Size: 412 Bytes

Versions: 2

Compression:

Stored size: 412 Bytes

Contents

# frozen_string_literal: true

module Facter
  module El
    class OsName
      FACT_NAME = 'os.name'
      ALIASES = 'operatingsystem'

      def call_the_resolver
        fact_value = Resolvers::OsRelease.resolve(:name)
        fact_value ||= Resolvers::RedHatRelease.resolve(:name)

        [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/el/os/name.rb
facter-4.0.7.pre lib/facts/el/os/name.rb