Sha256: db03368f8bd11a291b2e53faea9c040898e5bc2fd245b72225ee471005aa1db8

Contents?: true

Size: 362 Bytes

Versions: 2

Compression:

Stored size: 362 Bytes

Contents

# frozen_string_literal: true

module Facter
  module El
    class MemorySwapAvailable
      FACT_NAME = 'memory.swap.available'

      def call_the_resolver
        fact_value = Resolvers::Linux::Memory.resolve(:swap_free)
        fact_value = BytesToHumanReadable.convert(fact_value)
        ResolvedFact.new(FACT_NAME, fact_value)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
facter-4.0.8.pre lib/facts/el/memory/swap/available.rb
facter-4.0.7.pre lib/facts/el/memory/swap/available.rb