Sha256: ea9211023ee8d998e6c43046e19737b0f8d7bf64f413b699367497e843ea9b54

Contents?: true

Size: 454 Bytes

Versions: 1

Compression:

Stored size: 454 Bytes

Contents

# frozen_string_literal: true

module Facts
  module El
    module Memory
      module Swap
        class Total
          FACT_NAME = 'memory.swap.total'

          def call_the_resolver
            fact_value = Facter::Resolvers::Linux::Memory.resolve(:swap_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/swap/total.rb