aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorTim D. Smith2015-03-11 20:23:22 -0700
committerTim D. Smith2015-03-11 21:08:54 -0700
commit4057a68e6e074d9e3e42a7e94f89723804f9f998 (patch)
treeddb4508a61f07866d535040ce561965b3b8f2dee /Library
parentb136a0acdfd5d0ac59c2b50e7fb7df08203f5814 (diff)
downloadbrew-4057a68e6e074d9e3e42a7e94f89723804f9f998.tar.bz2
add bottle? method to Tab
Closes Homebrew/homebrew#37621.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/tab.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/tab.rb b/Library/Homebrew/tab.rb
index 84960e7ea..dcd8c2762 100644
--- a/Library/Homebrew/tab.rb
+++ b/Library/Homebrew/tab.rb
@@ -155,6 +155,10 @@ class Tab < OpenStruct
built_as_bottle && !poured_from_bottle
end
+ def bottle?
+ built_as_bottle
+ end
+
def to_json
attributes = {
"used_options" => used_options.as_flags,