aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/software_spec.rb
diff options
context:
space:
mode:
authorMike McQuaid2015-02-17 18:57:19 +0000
committerMike McQuaid2015-02-17 18:57:59 +0000
commit38f9a78c29f9bf3218e777ed9658a1d81473bcd6 (patch)
tree3b421f02fd9d041210ae29f01d14e7d27c36735b /Library/Homebrew/software_spec.rb
parent51956d343a5b38a683db9afe51e39dabbd715ac0 (diff)
downloadbrew-38f9a78c29f9bf3218e777ed9658a1d81473bcd6.tar.bz2
Add initial Bintray upload support.
Diffstat (limited to 'Library/Homebrew/software_spec.rb')
-rw-r--r--Library/Homebrew/software_spec.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/Library/Homebrew/software_spec.rb b/Library/Homebrew/software_spec.rb
index a1fba5661..f0e0c3493 100644
--- a/Library/Homebrew/software_spec.rb
+++ b/Library/Homebrew/software_spec.rb
@@ -251,7 +251,11 @@ end
class BottleSpecification
DEFAULT_PREFIX = "/usr/local".freeze
DEFAULT_CELLAR = "/usr/local/Cellar".freeze
- DEFAULT_ROOT_URL = "https://downloads.sf.net/project/machomebrew/Bottles".freeze
+ if ENV["HOMEBREW_BINTRAY_TESTING"]
+ DEFAULT_ROOT_URL = "https://bintray.com/artifact/download/homebrew/bottles".freeze
+ else
+ DEFAULT_ROOT_URL = "https://downloads.sf.net/project/machomebrew/Bottles".freeze
+ end
attr_rw :root_url, :prefix, :cellar, :revision
attr_reader :checksum, :collector