aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorMike McQuaid2012-08-04 09:34:04 +0100
committerMike McQuaid2012-08-04 10:36:31 +0100
commitcdc987286ae1bfdb39e20e3d37fa9caa348d1191 (patch)
treeb0f06f309ec1b0b292c1841f2e6fd5ab549b517c /Library/Homebrew
parent2ff90a94f3fcab7686f30993f7c6dfdf2baeed79 (diff)
downloadbrew-cdc987286ae1bfdb39e20e3d37fa9caa348d1191.tar.bz2
Add better named aliases for macos_version_or_newer?
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/macos.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/Library/Homebrew/macos.rb b/Library/Homebrew/macos.rb
index 43f9ab031..19c33bbc9 100644
--- a/Library/Homebrew/macos.rb
+++ b/Library/Homebrew/macos.rb
@@ -205,14 +205,17 @@ module MacOS extend self
def snow_leopard?
10.6 <= MACOS_VERSION # Actually Snow Leopard or newer
end
+ alias :snow_leopard_or_newer? :snow_leopard?
def lion?
10.7 <= MACOS_VERSION # Actually Lion or newer
end
+ alias :lion_or_newer? :lion?
def mountain_lion?
10.8 <= MACOS_VERSION # Actually Mountain Lion or newer
end
+ alias :mountain_lion_or_newer? :mountain_lion?
def prefer_64_bit?
Hardware.is_64_bit? and not leopard?