summaryrefslogtreecommitdiff
path: root/lib/bundler/cli/install.rb
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2017-09-08 12:44:09 -0700
committerSamuel Giddins <segiddins@segiddins.me>2017-09-08 12:44:09 -0700
commit12d5fb573384fde3c935f0c5c4f9217a5463004c (patch)
tree5642ca87f7ad30d2ea8bf99acb29340347da83aa /lib/bundler/cli/install.rb
parent7fb9fa70915dc687f5e0f5c65f26538dd77760da (diff)
downloadbundler-12d5fb573384fde3c935f0c5c4f9217a5463004c.tar.gz
Expand path relative to pwd in the settings validator
Diffstat (limited to 'lib/bundler/cli/install.rb')
-rw-r--r--lib/bundler/cli/install.rb12
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/bundler/cli/install.rb b/lib/bundler/cli/install.rb
index 10f3a98002..d878081df7 100644
--- a/lib/bundler/cli/install.rb
+++ b/lib/bundler/cli/install.rb
@@ -167,10 +167,14 @@ module Bundler
end
def normalize_settings
- CLI::Common.set_path nil if options[:system]
- CLI::Common.set_path "vendor/bundle" if options[:deployment]
- CLI::Common.set_path options["path"], :if_given
- CLI::Common.set_path "bundle" if options["standalone"] && Bundler.settings[:path].nil?
+ Bundler.settings.set_command_option :path, nil if options[:system]
+ Bundler.settings.temporary(:path_relative_to_cwd => false) do
+ Bundler.settings.set_command_option :path, "vendor/bundle" if options[:deployment]
+ end
+ Bundler.settings.set_command_option_if_given :path, options[:path]
+ Bundler.settings.temporary(:path_relative_to_cwd => false) do
+ Bundler.settings.set_command_option :path, "bundle" if options["standalone"] && Bundler.settings[:path].nil?
+ end
bin_option = options["binstubs"]
bin_option = nil if bin_option && bin_option.empty?