aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/bottles.rb
diff options
context:
space:
mode:
authorMike McQuaid2015-02-19 12:56:31 +0000
committerMike McQuaid2015-02-19 12:58:56 +0000
commitcf72e942b6319d6f27867812e13e118b6d8bc9d3 (patch)
tree6ec084227f532fc4644895f8d76cc5850d90fb36 /Library/Homebrew/bottles.rb
parent525e04d8dd012e62207cfadd224b9889ed20f547 (diff)
downloadbrew-cf72e942b6319d6f27867812e13e118b6d8bc9d3.tar.bz2
bottles: add Bintray package naming method.
Diffstat (limited to 'Library/Homebrew/bottles.rb')
-rw-r--r--Library/Homebrew/bottles.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/bottles.rb b/Library/Homebrew/bottles.rb
index 6e4482b7c..afa3fe2f6 100644
--- a/Library/Homebrew/bottles.rb
+++ b/Library/Homebrew/bottles.rb
@@ -47,6 +47,10 @@ def bottle_filename_formula_name filename
end
class Bintray
+ def self.package(formula_name)
+ formula_name.to_s.gsub "+", "x"
+ end
+
def self.repository(tap=nil)
return "bottles" if tap.to_s.empty?
"bottles-#{tap.sub(/^homebrew\/(homebrew-)?/i, "")}"