class Pod::Source::Aggregate
Public Instance Methods
cocoapods_sources_search(dependency, podfile)
click to toggle source
# File lib/cocoapods-sources/native/aggregate.rb, line 6 def cocoapods_sources_search(dependency, podfile) pod_with_source = podfile.get_options[:pod_with_source] if pod_with_source.blank? search(dependency) else specific_source = pod_with_source[dependency.to_s] if specific_source.blank? search(dependency) else found_sources = sources.select do |s| if specific_source == s.url s.search(dependency) end end unless found_sources.empty? title = "Changing #{dependency} (to #{specific_source})" UI.titled_section(title.green, { :verbose_prefix => '-> '.green }) do Specification::Set.new(dependency.root_name, found_sources) end end end end end