aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/utils.rb
diff options
context:
space:
mode:
authorSamuel Cochran2011-07-25 10:21:44 +0800
committerAdam Vandenberg2011-07-27 08:16:16 -0700
commit1b9598c34b444b1a385b805331c513c0495c7618 (patch)
tree808dde35fc32aaae80ba7b939542d0e48bd771e8 /Library/Homebrew/utils.rb
parent98218cdd2202eeaabe603700f21dbdef76269b18 (diff)
downloadhomebrew-1b9598c34b444b1a385b805331c513c0495c7618.tar.bz2
Add MacOS.lion? for MACOS_VERSION == 10.7
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Homebrew/utils.rb')
-rw-r--r--Library/Homebrew/utils.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb
index 74d5d0f91..e5d7fa81a 100644
--- a/Library/Homebrew/utils.rb
+++ b/Library/Homebrew/utils.rb
@@ -8,7 +8,7 @@ class Tty
def yellow; underline 33 ; end
def reset; escape 0; end
def em; underline 39; end
-
+
private
def color n
escape "0;#{n}"
@@ -330,6 +330,10 @@ module MacOS extend self
10.6 <= MACOS_VERSION # Actually Snow Leopard or newer
end
+ def lion?
+ 10.7 == MACOS_VERSION
+ end
+
def prefer_64_bit?
Hardware.is_64_bit? and 10.6 <= MACOS_VERSION
end