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
commit507aee207884a936e0a83cd283ad1dbe44554c11 (patch)
treefc538c57ab731a3396d85a210cf467f2129668e6 /Library/Homebrew/software_spec.rb
parent69f15b83cc479f930db26fd4c6800ff31f646dfa (diff)
downloadhomebrew-507aee207884a936e0a83cd283ad1dbe44554c11.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