Sha256: 016f23f2ecc4e096ed3430e15bd0cc904e6d9fc203405cce7962e8e160065264
Contents?: true
Size: 379 Bytes
Versions: 8
Compression:
Stored size: 379 Bytes
Contents
# frozen_string_literal: true module Facter module Resolvers class Path < BaseResolver @fact_list ||= {} 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
8 entries across 8 versions & 1 rubygems