method

cache

ruby latest stable - Class: Bundler::Source::Git

Method not available on this version

This method is only available on newer versions. The first available version (v2_6_3) is shown here.

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