aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/macos.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/macos.rb')
-rw-r--r--Library/Homebrew/macos.rb19
1 files changed, 5 insertions, 14 deletions
diff --git a/Library/Homebrew/macos.rb b/Library/Homebrew/macos.rb
index bd44ef7ab..b0320c9f4 100644
--- a/Library/Homebrew/macos.rb
+++ b/Library/Homebrew/macos.rb
@@ -10,21 +10,12 @@ module MacOS extend self
end
def cat
- @cat ||= uncached_cat
- end
-
- def uncached_cat
case MacOS.version
- when 10.8
- :mountain_lion
- when 10.7
- :lion
- when 10.6
- Hardware.is_64_bit? ? :snow_leopard : :snow_leopard_32
- when 10.5
- :leopard
- else
- Hardware::CPU.family if Hardware::CPU.type == :ppc
+ when 10.8 then :mountain_lion
+ when 10.7 then :lion
+ when 10.6 then :snow_leopard
+ when 10.5 then :leopard
+ when 10.4 then :tiger
end
end