Sha256: e5d1019ac257048088c21be9caa973266140dc68ddef33a3be324f063bd944b1

Contents?: true

Size: 375 Bytes

Versions: 4

Compression:

Stored size: 375 Bytes

Contents

# frozen_string_literal: true

module Facter
  module Resolvers
    class Path < BaseResolver
      init_resolver

      class << self
        private

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

        def read_path_from_env
          @fact_list[:path] = ENV['PATH']
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
facter-4.0.49 lib/facter/resolvers/path.rb
facter-4.0.48 lib/facter/resolvers/path.rb
facter-4.0.47 lib/facter/resolvers/path_resolver.rb
facter-4.0.46 lib/facter/resolvers/path_resolver.rb