# frozen_string_literal: true module Facter module Resolvers class Facterversion < BaseResolver init_resolver 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