diff options
author | Homu <homu@barosl.com> | 2016-01-07 12:15:25 +0900 |
---|---|---|
committer | Homu <homu@barosl.com> | 2016-01-07 12:15:25 +0900 |
commit | 60ace14414365ab830da59ec2096d4725577a20a (patch) | |
tree | 2498fb6ab286847c7d2054590313ca1d6adb2e6d | |
parent | c3684b0a43edd26841b84bbcc2912a3cee8b21da (diff) | |
parent | 2cba2b7998f82ecb7007fdaf79feeeec26933b66 (diff) | |
download | bundler-60ace14414365ab830da59ec2096d4725577a20a.tar.gz |
Auto merge of #4200 - bundler:seg-lock-full-index, r=indirect
[Lock] Add --full-index option
\c @indirect
-rw-r--r-- | lib/bundler/cli.rb | 2 | ||||
-rw-r--r-- | lib/bundler/cli/lock.rb | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/lib/bundler/cli.rb b/lib/bundler/cli.rb index e8f9c14dea..d97503435d 100644 --- a/lib/bundler/cli.rb +++ b/lib/bundler/cli.rb @@ -409,6 +409,8 @@ module Bundler "print the lockfile to STDOUT instead of writing to the file system" method_option "lockfile", :type => :string, :default => nil, :banner => "the path the lockfile should be written to" + method_option "full-index", :type => :boolean, :default => false, :banner => + "Use the rubygems modern index instead of the API endpoint" def lock require "bundler/cli/lock" Lock.new(options).run diff --git a/lib/bundler/cli/lock.rb b/lib/bundler/cli/lock.rb index 5a967165a3..457826dfb5 100644 --- a/lib/bundler/cli/lock.rb +++ b/lib/bundler/cli/lock.rb @@ -17,6 +17,7 @@ module Bundler Bundler.ui = UI::Silent.new if print gems = options[:update] + Bundler::Fetcher.disable_endpoint = options["full-index"] if gems && !gems.empty? definition = Bundler.definition(:gems => gems) |