Class: Utils::Bottles::Bintray

Inherits:
Object
  • Object
show all
Defined in:
Library/Homebrew/utils/bottles.rb

Class Method Summary collapse

Class Method Details

.package(formula_name) ⇒ Object



69
70
71
72
73
74
# File 'Library/Homebrew/utils/bottles.rb', line 69

def self.package(formula_name)
  package_name = formula_name.to_s.dup
  package_name.tr!("+", "x")
  package_name.sub!(/(.)@(\d)/, "\\1:\\2") # Handle foo@1.2 style formulae.
  package_name
end

.repository(tap = nil) ⇒ Object



76
77
78
79
80
81
82
# File 'Library/Homebrew/utils/bottles.rb', line 76

def self.repository(tap = nil)
  if tap.nil? || tap.core_tap?
    "bottles"
  else
    "bottles-#{tap.repo}"
  end
end