summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)