class Facter::Processors::Darwin
Public Class Methods
new()
click to toggle source
# File lib/facter/processors/os.rb, line 146 def initialize require "cfpropertylist" @system_hardware_data = query_system_profiler end
Public Instance Methods
get_processor_count()
click to toggle source
# File lib/facter/processors/os.rb, line 151 def get_processor_count Facter::Util::POSIX.sysctl("hw.ncpu").to_i end
get_processor_speed()
click to toggle source
# File lib/facter/processors/os.rb, line 155 def get_processor_speed @system_hardware_data["current_processor_speed"] end