diff options
Diffstat (limited to 'Library/Homebrew/hardware.rb')
| -rw-r--r-- | Library/Homebrew/hardware.rb | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/Library/Homebrew/hardware.rb b/Library/Homebrew/hardware.rb index ec13814cc..f7a21ebd8 100644 --- a/Library/Homebrew/hardware.rb +++ b/Library/Homebrew/hardware.rb @@ -1,7 +1,8 @@ -require 'os' +require "os" class Hardware - module CPU extend self + module CPU + extend self INTEL_32BIT_ARCHS = [:i386].freeze INTEL_64BIT_ARCHS = [:x86_64].freeze PPC_32BIT_ARCHS = [:ppc, :ppc7400, :ppc7450, :ppc970].freeze @@ -49,10 +50,10 @@ class Hardware end if OS.mac? - require 'os/mac/hardware' + require "os/mac/hardware" CPU.extend MacCPUs elsif OS.linux? - require 'os/linux/hardware' + require "os/linux/hardware" CPU.extend LinuxCPUs else raise "The system `#{`uname`.chomp}' is not supported." @@ -60,9 +61,9 @@ class Hardware def self.cores_as_words case Hardware::CPU.cores - when 1 then 'single' - when 2 then 'dual' - when 4 then 'quad' + when 1 then "single" + when 2 then "dual" + when 4 then "quad" else Hardware::CPU.cores end |
