aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/compat/hardware.rb
blob: 07a63f0488f5babc9c3aa9f9f12f6a994e707184 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
module Hardware
  class << self
    def is_32_bit?
      odeprecated "Hardware.is_32_bit?", "Hardware::CPU.is_32_bit?"
      !CPU.is_64_bit?
    end

    def is_64_bit?
      odeprecated "Hardware.is_64_bit?", "Hardware::CPU.is_64_bit?"
      CPU.is_64_bit?
    end

    def bits
      odeprecated "Hardware.bits", "Hardware::CPU.bits"
      Hardware::CPU.bits
    end

    def cpu_type
      odeprecated "Hardware.cpu_type", "Hardware::CPU.type"
      Hardware::CPU.type
    end

    def cpu_family
      odeprecated "Hardware.cpu_family", "Hardware::CPU.family"
      Hardware::CPU.family
    end

    def intel_family
      odeprecated "Hardware.intel_family", "Hardware::CPU.family"
      Hardware::CPU.family
    end

    def ppc_family
      odeprecated "Hardware.ppc_family", "Hardware::CPU.family"
      Hardware::CPU.family
    end

    def processor_count
      odeprecated "Hardware.processor_count", "Hardware::CPU.cores"
      Hardware::CPU.cores
    end
  end
end