Method: Pod::CDNSource#specification_path
- Defined in:
- lib/cocoapods-core/cdn_source.rb
#specification_path(name, version) ⇒ Pathname
Returns the path of the specification with the given name and version.
161 162 163 164 165 166 167 168 169 170 171 172 173 |
# File 'lib/cocoapods-core/cdn_source.rb', line 161 def specification_path(name, version) raise ArgumentError, 'No name' unless name raise ArgumentError, 'No version' unless version unless versions(name).include?(Version.new(version)) raise StandardError, "Unable to find the specification #{name} " \ "(#{version}) in the #{self.name} source." end podspec_version_path_relative = Pathname.new(version.to_s).join("#{name}.podspec.json") relative_podspec = relative_pod_path(name).join(podspec_version_path_relative).to_s download_file(relative_podspec) pod_path(name).join(podspec_version_path_relative) end |