Sha256: 5090006a7c81abf41892c60d4120b54bdbf08a06d1d8fe53f31f2f1870892096

Contents?: true

Size: 364 Bytes

Versions: 2

Compression:

Stored size: 364 Bytes

Contents

# frozen_string_literal: true

module Facter
  module Sles
    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/sles/memory/swap/available.rb
facter-4.0.7.pre lib/facts/sles/memory/swap/available.rb