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
- .package(formula_name) ⇒ Object private
- .repository(tap = nil) ⇒ Object private
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.
78 79 80 81 82 83 |
# File 'Library/Homebrew/utils/bottles.rb', line 78 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.
85 86 87 88 89 90 91 |
# File 'Library/Homebrew/utils/bottles.rb', line 85 def self.repository(tap = nil) if tap.nil? || tap.core_tap? "bottles" else "bottles-#{tap.repo}" end end |