Class: Pod::ExternalSources::GitSource

Inherits:
AbstractExternalSource show all
Defined in:
lib/cocoapods/external_sources.rb

Overview

Note:

The podspec must be in the root of the repository and should have a name matching the one of the dependency.

Provides support for fetching a specification file from a Git remote.

Supports all the options of the downloader (is similar to the git key of ‘source` attribute of a specification).

Instance Attribute Summary

Attributes inherited from AbstractExternalSource

#name, #params, #podfile_path

Subclasses hooks collapse

Methods inherited from AbstractExternalSource

#==, #initialize

Constructor Details

This class inherits a constructor from Pod::ExternalSources::AbstractExternalSource

Instance Method Details

#descriptionObject



198
199
200
201
202
203
204
# File 'lib/cocoapods/external_sources.rb', line 198

def description
  "from `#{params[:git]}`".tap do |description|
    description << ", commit `#{params[:commit]}`" if params[:commit]
    description << ", branch `#{params[:branch]}`" if params[:branch]
    description << ", tag `#{params[:tag]}`" if params[:tag]
  end
end

#fetch(sandbox) ⇒ Object



192
193
194
# File 'lib/cocoapods/external_sources.rb', line 192

def fetch(sandbox)
  pre_download(sandbox)
end