Sha256: 51d42bfe00f843e9b381115124c498851f40a89c7c84495602748b65c6a9171b

Contents?: true

Size: 539 Bytes

Versions: 6

Compression:

Stored size: 539 Bytes

Contents

# frozen_string_literal: true

module Facts
  module El
    module Memory
      module System
        class TotalBytes
          FACT_NAME = 'memory.system.total_bytes'
          ALIASES = 'memorysize_mb'

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
facter-4.0.18 lib/facts/el/memory/system/total_bytes.rb
facter-4.0.17 lib/facts/el/memory/system/total_bytes.rb
facter-4.0.16 lib/facts/el/memory/system/total_bytes.rb
facter-4.0.15 lib/facts/el/memory/system/total_bytes.rb
facter-4.0.14 lib/facts/el/memory/system/total_bytes.rb
facter-4.0.13 lib/facts/el/memory/system/total_bytes.rb