Skip to content
Snippets Groups Projects
Commit e303a97a authored by Mike McQuaid's avatar Mike McQuaid
Browse files

bottles: add Bintray class.

For some utility functions.
parent 258c4dde
No related branches found
No related tags found
No related merge requests found
......@@ -46,6 +46,17 @@ def bottle_filename_formula_name filename
basename.rpartition("-#{version}").first
end
class Bintray
def self.repository(tap=nil)
return "bottles" if tap.to_s.empty?
"bottles-#{tap.sub(/^homebrew\/homebrew-/i, "")}"
end
def self.version(path)
BottleVersion.parse(path).to_s
end
end
class BottleCollector
def initialize
@checksums = {}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment