Sha256: 489207322ddc86f33bb69d6ec4eda0459a48cda6b96658b3a0f6056357b4da64

Contents?: true

Size: 568 Bytes

Versions: 24

Compression:

Stored size: 568 Bytes

Contents

# frozen_string_literal: true

module Facts
  module Linux
    module Memory
      module System
        class Total
          FACT_NAME = 'memory.system.total'
          ALIASES = 'memorysize'

          def call_the_resolver
            fact_value = Facter::Resolvers::Linux::Memory.resolve(:total)
            fact_value = Facter::FactsUtils::UnitConverter.bytes_to_human_readable(fact_value)
            [Facter::ResolvedFact.new(FACT_NAME, fact_value), Facter::ResolvedFact.new(ALIASES, fact_value, :legacy)]
          end
        end
      end
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
facter-4.0.24 lib/facts/linux/memory/system/total.rb
facter-4.0.23 lib/facts/linux/memory/system/total.rb
facter-4.0.22 lib/facts/linux/memory/system/total.rb
facter-4.0.21 lib/facts/linux/memory/system/total.rb