Sha256: 04e35f91ee4e4fd6000aab4c66588a67e179b15c2cd66576e5af40f0081c007d

Contents?: true

Size: 398 Bytes

Versions: 1

Compression:

Stored size: 398 Bytes

Contents

# frozen_string_literal: true

module Facts
  module Debian
    module Dmi
      module Board
        class SerialNumber
          FACT_NAME = 'dmi.board.serial_number'

          def call_the_resolver
            fact_value = Facter::Resolvers::Linux::DmiBios.resolve(:board_serial)
            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/debian/dmi/board/serial_number.rb