Class: Pod::Dependency::ExternalSources::AbstractExternalSource
- Inherits:
-
Object
- Object
- Pod::Dependency::ExternalSources::AbstractExternalSource
- Includes:
- Config::Mixin
- Defined in:
- lib/cocoapods/dependency.rb
Direct Known Subclasses
Instance Attribute Summary (collapse)
-
- (Object) name
readonly
Returns the value of attribute name.
-
- (Object) params
readonly
Returns the value of attribute params.
Instance Method Summary (collapse)
- - (Object) ==(other_source)
-
- (AbstractExternalSource) initialize(name, params)
constructor
A new instance of AbstractExternalSource.
- - (Object) specification_from_sandbox(sandbox, platform)
Methods included from Config::Mixin
Constructor Details
- (AbstractExternalSource) initialize(name, params)
A new instance of AbstractExternalSource
130 131 132 |
# File 'lib/cocoapods/dependency.rb', line 130 def initialize(name, params) @name, @params = name, params end |
Instance Attribute Details
- (Object) name (readonly)
Returns the value of attribute name
128 129 130 |
# File 'lib/cocoapods/dependency.rb', line 128 def name @name end |
- (Object) params (readonly)
Returns the value of attribute params
128 129 130 |
# File 'lib/cocoapods/dependency.rb', line 128 def params @params end |
Instance Method Details
- (Object) ==(other_source)
145 146 147 148 |
# File 'lib/cocoapods/dependency.rb', line 145 def ==(other_source) return if other_source.nil? name == other_source.name && params == other_source.params end |
- (Object) specification_from_sandbox(sandbox, platform)
134 135 136 137 138 139 140 141 142 143 |
# File 'lib/cocoapods/dependency.rb', line 134 def specification_from_sandbox(sandbox, platform) if local_pod = sandbox.installed_pod_named(name, platform) local_pod.top_specification else copy_external_source_into_sandbox(sandbox) local_pod = sandbox.installed_pod_named(name, platform) local_pod.clean if config.clean? && local_pod.exists? local_pod.top_specification end end |