1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[bundler/bundler] Reuse root method

42363091da
This commit is contained in:
David Rodríguez 2019-07-24 19:45:53 +02:00 committed by SHIBATA Hiroshi
parent cd41378ef9
commit 500c3cb6a5
Notes: git 2019-08-31 04:40:14 +09:00

View file

@ -20,7 +20,7 @@ module Bundler
@allow_cached = false
@allow_remote = false
@root_path = options["root_path"] || Bundler.root
@root_path = options["root_path"] || root
if options["path"]
@path = Pathname.new(options["path"])
@ -136,7 +136,7 @@ module Bundler
def lockfile_path
return relative_path(original_path) if original_path.absolute?
expand(original_path).relative_path_from(Bundler.root)
expand(original_path).relative_path_from(root)
end
def app_cache_path(custom_path = nil)