Sha256: a3e301b807a5819fa256be32d0f6d26eaa1fc7ceea017d5e6ad0a39a67a0f642
Contents?: true
Size: 578 Bytes
Versions: 4
Compression:
Stored size: 578 Bytes
Contents
# frozen_string_literal: true module Facter module Resolvers module Macosx class DmiBios < BaseResolver init_resolver class << self #:model private def post_resolve(fact_name) @fact_list.fetch(fact_name) { read_facts } end def read_facts # OSX only supports the product name output = Facter::Core::Execution.execute('sysctl -n hw.model', logger: log) @fact_list[:macosx_model] = output&.strip end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems