aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2014-03-28 14:52:23 +0000
committerMike McQuaid2014-04-03 19:47:15 +0100
commit767da444f9d0112607370177d00c0d73042f2959 (patch)
tree3936cbd193b8decf6c5550fd723ce79642148617 /Library
parent33c99123f2567eca6589e2a14d9de758edc7a32f (diff)
downloadbrew-767da444f9d0112607370177d00c0d73042f2959.tar.bz2
requirement: add pour_bottle? method.
Allows disabling bottles from requirements.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/requirement.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/requirement.rb b/Library/Homebrew/requirement.rb
index cb957af32..b3acbe665 100644
--- a/Library/Homebrew/requirement.rb
+++ b/Library/Homebrew/requirement.rb
@@ -33,6 +33,10 @@ class Requirement
!!result
end
+ # Can overridden to optionally prevent a formula with this requirement from
+ # pouring a bottle.
+ def pour_bottle?; true end
+
# Overriding #fatal? is deprecated.
# Pass a boolean to the fatal DSL method instead.
def fatal?