Sha256: d6aad0c9ad02c3ac855df86d7d4af117ef749353aa15e880ffd1095e0a6223c6
Contents?: true
Size: 549 Bytes
Versions: 6
Compression:
Stored size: 549 Bytes
Contents
# frozen_string_literal: true module Facts module El module Memory module System class AvailableBytes FACT_NAME = 'memory.system.available_bytes' ALIASES = 'memoryfree_mb' def call_the_resolver fact_value = Facter::Resolvers::Linux::Memory.resolve(:memfree) [Facter::ResolvedFact.new(FACT_NAME, fact_value), Facter::ResolvedFact.new(ALIASES, Facter::FactsUtils::BytesConverter.to_mb(fact_value), :legacy)] end end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems