Sha256: 21cf0362e3d124868f1510643d263c254732aeee176fbf068dd5f491523e48cd
Contents?: true
Size: 543 Bytes
Versions: 26
Compression:
Stored size: 543 Bytes
Contents
# frozen_string_literal: true module Facter module Resolvers class PuppetVersionResolver < BaseResolver # :puppetversion @semaphore = Mutex.new @fact_list ||= {} class << self private def post_resolve(fact_name) @fact_list.fetch(fact_name) { puppet_version(fact_name) } end def puppet_version(fact_name) require 'puppet/version' @fact_list[:puppetversion] = Puppet.version @fact_list[fact_name] end end end end end
Version data entries
26 entries across 26 versions & 1 rubygems