aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Contributions
diff options
context:
space:
mode:
authorRaymie Stata2013-09-24 01:34:28 -0700
committerAdam Vandenberg2013-09-24 20:43:34 -0700
commit694a9c2eed98419fda7e110cdabb9b4f815e7a10 (patch)
tree83bcabc21cf01339f2b92a522d62042ce92b33b4 /Library/Contributions
parent8d0c8fd978506edb5cdca8c68e8e948087428fab (diff)
downloadbrew-694a9c2eed98419fda7e110cdabb9b4f815e7a10.tar.bz2
add S3DownloadStrategy
downloads tarballs from public and private S3 buckets Closes Homebrew/homebrew#22779. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Contributions')
-rw-r--r--Library/Contributions/example-formula.rb1
-rw-r--r--Library/Contributions/manpages/brew.1.md8
2 files changed, 9 insertions, 0 deletions
diff --git a/Library/Contributions/example-formula.rb b/Library/Contributions/example-formula.rb
index 8376e2713..43e294bd8 100644
--- a/Library/Contributions/example-formula.rb
+++ b/Library/Contributions/example-formula.rb
@@ -26,6 +26,7 @@ class ExampleFormula < Formula
# `:curl` (normal file download. Will also extract.)
# `:nounzip` (without extracting)
# `:post` (download via an HTTP POST)
+ # `S3DownloadStrategy` (download from S3 using signed request)
# `UnsafeSubversionDownloadStrategy` (svn with invalid certs)
url 'https://some.dont.provide.archives.example.com', :using => :git, :tag => '1.2.3'
diff --git a/Library/Contributions/manpages/brew.1.md b/Library/Contributions/manpages/brew.1.md
index 2fff4801e..5524c070b 100644
--- a/Library/Contributions/manpages/brew.1.md
+++ b/Library/Contributions/manpages/brew.1.md
@@ -436,6 +436,14 @@ can take several different forms:
## ENVIRONMENT
+ * AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY:
+ When using the S3 download strategy, Homebrew will look in
+ these variables for access credentials (see
+ <http://docs.aws.amazon.com/fws/1.1/GettingStartedGuide/index.html?AWSCredentials.html>
+ to retrieve these access credentials from AWS). If they are not set,
+ the S3 download strategy will download with a public
+ (unsigned) URL.
+
* BROWSER:
If set, and `HOMEBREW_BROWSER` is not, use `BROWSER` as the web browser
when opening project homepages.