lib/facts/windows/memory/system/used.rb in facter-4.0.8.pre vs lib/facts/windows/memory/system/used.rb in facter-4.0.9.pre

- old
+ new

@@ -1,16 +1,20 @@ # frozen_string_literal: true -module Facter +module Facts module Windows - class MemorySystemUsed - FACT_NAME = 'memory.system.used' + module Memory + module System + class Used + FACT_NAME = 'memory.system.used' - def call_the_resolver - fact_value = Facter::Resolvers::Memory.resolve(:used_bytes) - fact_value = BytesToHumanReadable.convert(fact_value) + def call_the_resolver + fact_value = Facter::Resolvers::Memory.resolve(:used_bytes) + fact_value = Facter::BytesToHumanReadable.convert(fact_value) - ResolvedFact.new(FACT_NAME, fact_value) + Facter::ResolvedFact.new(FACT_NAME, fact_value) + end + end end end end end