brew/Library/Homebrew/compat/hardware.rb

36 lines
762 B
Ruby
Raw Normal View History

2016-04-25 18:00:01 +01:00
module Hardware
class << self
2016-07-16 22:15:42 +01:00
def is_32_bit?
odisabled "Hardware.is_32_bit?", "Hardware::CPU.is_32_bit?"
end
2016-07-16 22:15:42 +01:00
def is_64_bit?
odisabled "Hardware.is_64_bit?", "Hardware::CPU.is_64_bit?"
end
def bits
odisabled "Hardware.bits", "Hardware::CPU.bits"
end
def cpu_type
odisabled "Hardware.cpu_type", "Hardware::CPU.type"
end
def cpu_family
odisabled "Hardware.cpu_family", "Hardware::CPU.family"
2016-07-16 22:15:42 +01:00
end
def intel_family
odisabled "Hardware.intel_family", "Hardware::CPU.family"
2016-07-16 22:15:42 +01:00
end
def ppc_family
odisabled "Hardware.ppc_family", "Hardware::CPU.family"
end
def processor_count
odisabled "Hardware.processor_count", "Hardware::CPU.cores"
end
end
end