summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHomu <homu@barosl.com>2016-01-07 12:15:25 +0900
committerHomu <homu@barosl.com>2016-01-07 12:15:25 +0900
commit60ace14414365ab830da59ec2096d4725577a20a (patch)
tree2498fb6ab286847c7d2054590313ca1d6adb2e6d
parentc3684b0a43edd26841b84bbcc2912a3cee8b21da (diff)
parent2cba2b7998f82ecb7007fdaf79feeeec26933b66 (diff)
downloadbundler-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.rb2
-rw-r--r--lib/bundler/cli/lock.rb1
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)