lib/facter/resolvers/solaris/memory.rb in facter-4.0.44 vs lib/facter/resolvers/solaris/memory.rb in facter-4.0.46

- old
+ new

@@ -2,13 +2,14 @@ module Facter module Resolvers module Solaris class Memory < BaseResolver + init_resolver BLOCKSIZE = 512 # :system # :swap - @fact_list ||= {} + class << self private def post_resolve(fact_name) @fact_list.fetch(fact_name) { calculate_memory(fact_name) }