bottles: add Bintray class.
For some utility functions.
This commit is contained in:
parent
258c4ddefe
commit
e303a97aa7
@ -46,6 +46,17 @@ def bottle_filename_formula_name filename
|
|||||||
basename.rpartition("-#{version}").first
|
basename.rpartition("-#{version}").first
|
||||||
end
|
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
|
class BottleCollector
|
||||||
def initialize
|
def initialize
|
||||||
@checksums = {}
|
@checksums = {}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user