Module: Utils::Bottles::Bintray Private

Defined in:
utils/bottles.rb

Overview

This module is part of a private API. This module may only be used in the Homebrew/brew repository. Third parties should avoid using this module if possible, as it may be removed or changed without warning.

Helper functions for bottles hosted on Bintray.

Class Method Summary collapse

Class Method Details

.package(formula_name) ⇒ Object

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.



203
204
205
206
207
208
# File 'utils/bottles.rb', line 203

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

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.



210
211
212
213
214
215
216
# File 'utils/bottles.rb', line 210

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