add BuildOptions#build_bottle?

This makes BuildOptions more compatible with Tab object. Otherwise,
`brew reinstall foo` will just crash if foo is not installed.
This commit is contained in:
Xu Cheng 2016-07-21 14:38:59 +08:00
parent 8b9ce59ce4
commit 2b9a2833bc
No known key found for this signature in database
GPG Key ID: C2A3860FA0B459CE

View File

@ -47,6 +47,7 @@ class BuildOptions
def bottle?
include? "build-bottle"
end
alias_method :build_bottle?, :bottle?
# True if a {Formula} is being built with {Formula.head} instead of {Formula.stable}.
# <pre>args << "--some-new-stuff" if build.head?</pre>