From aea7ab0d5fcfca3232bbf0aa4e95f0b31aa2a63c Mon Sep 17 00:00:00 2001 From: Sebastian Nowak Date: Thu, 9 Feb 2017 17:41:31 +0100 Subject: Add documentation for mirror.fallback_timeout option. --- man/bundle-config.ronn | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 -- cgit v1.2.1