Sha256: 92657a3eff3cf19301220e0d6a922e460a6556b7518d524c627b1ac548c20e12

Contents?: true

Size: 366 Bytes

Versions: 2

Compression:

Stored size: 366 Bytes

Contents

# frozen_string_literal: true

module Facter
  module Sles
    class MemorySystemAvailable
      FACT_NAME = 'memory.system.available'

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