Sha256: 93af136058290a506432026d71d00fca669d7ab90eec9af17db848f42eef073b

Contents?: true

Size: 399 Bytes

Versions: 8

Compression:

Stored size: 399 Bytes

Contents

# frozen_string_literal: true

module Facter
  module Resolvers
    class Facterversion < BaseResolver
      @fact_list ||= {}

      class << self
        private

        def post_resolve(fact_name)
          @fact_list.fetch(fact_name) { read_version_file }
        end

        def read_version_file
          @fact_list[:facterversion] = Facter::VERSION
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
facter-4.0.44 lib/facter/resolvers/facterversion_resolver.rb
facter-4.0.43 lib/facter/resolvers/facterversion_resolver.rb
facter-4.0.42 lib/facter/resolvers/facterversion_resolver.rb
facter-4.0.41 lib/facter/resolvers/facterversion_resolver.rb
facter-4.0.40 lib/facter/resolvers/facterversion_resolver.rb
facter-4.0.39 lib/facter/resolvers/facterversion_resolver.rb
facter-4.0.38 lib/facter/resolvers/facterversion_resolver.rb
facter-4.0.37 lib/facter/resolvers/facterversion_resolver.rb