summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Nowak <sebastian.nowak@gmail.com>2017-02-09 17:41:31 +0100
committerSebastian Nowak <sebastian.nowak@gmail.com>2017-02-09 17:41:31 +0100
commitaea7ab0d5fcfca3232bbf0aa4e95f0b31aa2a63c (patch)
treee6dd79f953b1b7a55562db36fe8cfe2003c92dd8
parent1f99317050a556e53ef9b2cea0bec5926b0d5cf9 (diff)
downloadbundler-aea7ab0d5fcfca3232bbf0aa4e95f0b31aa2a63c.tar.gz
Add documentation for mirror.fallback_timeout option.
-rw-r--r--man/bundle-config.ronn12
1 files changed, 12 insertions, 0 deletions
diff --git a/man/bundle-config.ronn b/man/bundle-config.ronn
index a77ee331d4..209a91f418 100644
--- a/man/bundle-config.ronn
+++ b/man/bundle-config.ronn
@@ -272,6 +272,18 @@ For example, to use a mirror of rubygems.org hosted at
bundle config mirror.http://rubygems.org http://rubygems-mirror.org
+Bundler allows to set fallback timeout. When it pass Bundler will use original
+source instead of configured mirror.
+
+ bundle config mirror.SOURCE_URL.fallback_timeout TIMEOUT
+
+For example, to fallback mirror to original rubygems.org after 3 seconds
+
+ bundle config mirror.https://rubygems.org.fallback_timeout 3
+
+Default fallback timeout is 0.1 second. Bundler accepts only whole seconds as
+valid timeout values (1, 2, 3 ...).
+
## CREDENTIALS FOR GEM SOURCES
Bundler allows you to configure credentials for any gem source, which allows