Method: Pod::Source::Manager#sources

Defined in:
lib/cocoapods-core/source/manager.rb

#sources(names) ⇒ Array<Source>

Returns The list of the sources with the given names.

Parameters:

  • names (Array<#to_s>)

    The names of the sources.

Returns:

  • (Array<Source>)

    The list of the sources with the given names.

[View source]

51
52
53
54
# File 'lib/cocoapods-core/source/manager.rb', line 51

def sources(names)
  dirs = names.map { |name| source_dir(name) }
  dirs.map { |repo| source_from_path(repo) }
end