Method: Pod::Downloader::Cache#download_pod

Defined in:
lib/cocoapods/downloader/cache.rb

#download_pod(request) ⇒ Response

Downloads the Pod from the given request

Parameters:

  • request (Request)

    the request to be downloaded.

Returns:

  • (Response)

    the response from downloading request



32
33
34
35
36
37
38
39
# File 'lib/cocoapods/downloader/cache.rb', line 32

def download_pod(request)
  cached_pod(request) || uncached_pod(request)
rescue Informative
  raise
rescue
  UI.puts("\n[!] Error installing #{request.name}".red)
  raise
end