Sha256: d18a4a8a888ead9c84231d74e8c2c35beb67a65329480f37bfc120bbf39efd92

Contents?: true

Size: 353 Bytes

Versions: 2

Compression:

Stored size: 353 Bytes

Contents

# frozen_string_literal: true

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

      def call_the_resolver
        fact_value = Resolvers::Kernel.resolve(:kernel)

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