method

download_gem

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.