class Pod::Downloader::Git
Concreted Downloader
class that provides support for specifications with git sources.
Public Instance Methods
download!()
click to toggle source
# File lib/cocoapods_git_tarball/downloader_git.rb, line 19 def download! if url.start_with?('https://github.com/') && !options[:submodules] download_from_github! else orig_download! end end
Also aliased as: orig_download!
download_from_github!()
click to toggle source
# File lib/cocoapods_git_tarball/downloader_git.rb, line 10 def download_from_github! base_url = url.chomp('.git').chomp('/') ref = options[:commit] || options[:tag] || options[:branch] || 'master' download_url = "#{base_url}/archive/#{ref.to_s}.tar.gz" Http.new(target_path, download_url, {}).download end