Sha256: d0f368f69aa7b7a6020730b9b84da47a4e85f09fffaef956bd42a1075b6351e6

Contents?: true

Size: 453 Bytes

Versions: 1

Compression:

Stored size: 453 Bytes

Contents

# frozen_string_literal: true

module Facts
  module El
    module Memory
      module System
        class Total
          FACT_NAME = 'memory.system.total'

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
facter-4.0.9.pre lib/facts/el/memory/system/total.rb