bottles: add Bintray package naming method.

This commit is contained in:
Mike McQuaid 2015-02-19 12:56:31 +00:00
parent 525e04d8dd
commit cf72e942b6

View File

@ -47,6 +47,10 @@ def bottle_filename_formula_name filename
end end
class Bintray class Bintray
def self.package(formula_name)
formula_name.to_s.gsub "+", "x"
end
def self.repository(tap=nil) def self.repository(tap=nil)
return "bottles" if tap.to_s.empty? return "bottles" if tap.to_s.empty?
"bottles-#{tap.sub(/^homebrew\/(homebrew-)?/i, "")}" "bottles-#{tap.sub(/^homebrew\/(homebrew-)?/i, "")}"