Sha256: 880cd3c9aeaba2fa6073c982cae995415622fdc6fb6ae12bb55f0f0529759068
Contents?: true
Size: 567 Bytes
Versions: 2
Compression:
Stored size: 567 Bytes
Contents
# frozen_string_literal: true module Facts module Sles module Memory module System class Total FACT_NAME = 'memory.system.total' ALIASES = 'memorysize' def call_the_resolver fact_value = Facter::Resolvers::Linux::Memory.resolve(:total) fact_value = Facter::FactsUtils::UnitConverter.bytes_to_human_readable(fact_value) [Facter::ResolvedFact.new(FACT_NAME, fact_value), Facter::ResolvedFact.new(ALIASES, fact_value, :legacy)] end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
facter-4.0.20 | lib/facts/sles/memory/system/total.rb |
facter-4.0.19 | lib/facts/sles/memory/system/total.rb |