Sha256: ada7ef06770e8da7bffac0ee1548ad8ad8ed4b5f18f7b467ae77efb494d96438

Contents?: true

Size: 313 Bytes

Versions: 2

Compression:

Stored size: 313 Bytes

Contents

# frozen_string_literal: true

module Facter
  module Sles
    class MemorySwapAvailableBytes
      FACT_NAME = 'memory.swap.available_bytes'

      def call_the_resolver
        fact_value = Resolvers::Linux::Memory.resolve(:swap_free)
        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_bytes.rb
facter-4.0.7.pre lib/facts/sles/memory/swap/available_bytes.rb