method

download_gem

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

Method not available on this version

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

download_gem(spec, download_path)
private

Checks if the requested spec exists in the global cache. If it does, we copy it to the download path, and if it does not, we download it.

@param [Specification] spec

the spec we want to download or retrieve from the cache.

@param [String] download_path

the local directory the .gem will end up in.