method
cache
v2_6_3 -
Show latest stable
- Class:
Bundler::Source::Git
cache(spec, custom_path = nil)public
No documentation available.
# File lib/bundler/source/git.rb, line 188
def cache(spec, custom_path = nil)
app_cache_path = app_cache_path(custom_path)
return unless Bundler.feature_flag.cache_all?
return if path == app_cache_path
cached!
FileUtils.rm_rf(app_cache_path)
git_proxy.checkout if requires_checkout?
git_proxy.copy_to(app_cache_path, @submodules)
serialize_gemspecs_in(app_cache_path)
end