Sha256: d9e2013de91b5146eb4c47573dbecf95fab5058582a01c7f87ed95030b720b3d

Contents?: true

Size: 477 Bytes

Versions: 1

Compression:

Stored size: 477 Bytes

Contents

# frozen_string_literal: true

module Facts
  module Macosx
    module Memory
      module Swap
        class Available
          FACT_NAME = 'memory.swap.available'

          def call_the_resolver
            fact_value = Facter::Resolvers::Macosx::SwapMemory.resolve(:available_bytes)
            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/macosx/memory/swap/available.rb