Method: Pod::Source#pods_for_specification_paths
- Defined in:
- lib/cocoapods-core/source.rb
permalink #pods_for_specification_paths(spec_paths) ⇒ Array<String>
Returns pod names for given array of specification paths.
149 150 151 152 153 154 155 156 |
# File 'lib/cocoapods-core/source.rb', line 149 def pods_for_specification_paths(spec_paths) spec_paths.map do |path| absolute_path = repo + path relative_path = absolute_path.relative_path_from(specs_dir) # The first file name returned by 'each_filename' is the pod name relative_path.each_filename.first end end |