Module: Utils::Bottles::Bintray Private

Defined in:
Library/Homebrew/utils/bottles.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

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. You should avoid using this method if possible, as it may be removed or be changed in the future.


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

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

.repository(tap = nil) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.


84
85
86
87
88
89
90
# File 'Library/Homebrew/utils/bottles.rb', line 84

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