diff options
| author | Jack Nagel | 2013-06-06 16:02:27 -0500 | 
|---|---|---|
| committer | Jack Nagel | 2013-06-06 16:02:27 -0500 | 
| commit | 1f19374e375c8fbcc73897391095d6e5ae468487 (patch) | |
| tree | 878a6236e352fe4b5249425e46be8765ee187f74 /Library/Homebrew/hardware.rb | |
| parent | 73b948e06ce95755236ffaf2756b85b5233d243f (diff) | |
| download | homebrew-1f19374e375c8fbcc73897391095d6e5ae468487.tar.bz2 | |
Move oldest_cpu to Hardware
Diffstat (limited to 'Library/Homebrew/hardware.rb')
| -rw-r--r-- | Library/Homebrew/hardware.rb | 12 | 
1 files changed, 12 insertions, 0 deletions
| diff --git a/Library/Homebrew/hardware.rb b/Library/Homebrew/hardware.rb index 69f87eade..547c3c318 100644 --- a/Library/Homebrew/hardware.rb +++ b/Library/Homebrew/hardware.rb @@ -45,4 +45,16 @@ class Hardware        Hardware.processor_count      end    end + +  def self.oldest_cpu +    if Hardware::CPU.type == :intel +      if Hardware::CPU.is_64_bit? +        :core2 +      else +        :core +      end +    else +      Hardware::CPU.family +    end +  end  end | 
