aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorMike McQuaid2015-02-19 12:56:31 +0000
committerMike McQuaid2015-02-19 12:58:56 +0000
commite61e71089625ad26edfcb1a40ded7ded8aab1278 (patch)
tree98980ef1aea77a2cb916b6ac0af07a8449aabdf3 /Library/Homebrew
parentbfd286c38f7ae3e28d8abb55dba1f392ac1ee888 (diff)
downloadhomebrew-e61e71089625ad26edfcb1a40ded7ded8aab1278.tar.bz2
bottles: add Bintray package naming method.
Diffstat (limited to 'Library/Homebrew')
-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, "")}"