Sha256: 686cc52899adae2aaa8e10ed7e8df4338241547f0ffefb8a2d1024ad89b485d5
Contents?: true
Size: 612 Bytes
Versions: 15
Compression:
Stored size: 612 Bytes
Contents
# frozen_string_literal: true module Facter module Resolvers class OsLevel < BaseResolver # build @semaphore = Mutex.new @fact_list ||= {} class << self private def post_resolve(fact_name) @fact_list.fetch(fact_name) { read_oslevel(fact_name) } end def read_oslevel(fact_name) output = Facter::Core::Execution.execute('/usr/bin/oslevel -s', logger: log) @fact_list[:build] = output unless output.empty? @fact_list[:kernel] = 'AIX' @fact_list[fact_name] end end end end end
Version data entries
15 entries across 15 versions & 1 rubygems