diff options
| author | Mike McQuaid | 2014-03-28 14:52:23 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2014-04-03 19:47:15 +0100 |
| commit | ae43a2843da69058e1abcc4d598bc3058d160b5d (patch) | |
| tree | 77ea7b767f71cea649541d847b6c36a7f3886267 /Library | |
| parent | 43b7f5be402d769c3cf964ab42694fb111676283 (diff) | |
| download | homebrew-ae43a2843da69058e1abcc4d598bc3058d160b5d.tar.bz2 | |
requirement: add pour_bottle? method.
Allows disabling bottles from requirements.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/requirement.rb | 4 |
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? |
