Sha256: 471092291e7894c2498f05f6c8693ff3c1b3b35abdd18b3564ca11bbc6fba6ea
Contents?: true
Size: 575 Bytes
Versions: 39
Compression:
Stored size: 575 Bytes
Contents
# frozen_string_literal: true module Facts module Linux module Memory module Swap class Available FACT_NAME = 'memory.swap.available' ALIASES = 'swapfree' def call_the_resolver fact_value = Facter::Resolvers::Linux::Memory.resolve(:swap_free) fact_value = Facter::Util::Facts::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
39 entries across 39 versions & 1 rubygems