Commit d5cb0bbd authored by Fabio Pelosin's avatar Fabio Pelosin

[SourcesManager] Adapt for Aggregate changes

parent f49a5cec
...@@ -35,7 +35,7 @@ module Pod ...@@ -35,7 +35,7 @@ module Pod
# installation of CocoaPods. # installation of CocoaPods.
# #
def all def all
aggregate.all aggregate.sources
end end
# @return [Array<Specification::Set>] the list of all the specification # @return [Array<Specification::Set>] the list of all the specification
...@@ -329,7 +329,7 @@ module Pod ...@@ -329,7 +329,7 @@ module Pod
# The name of the source. # The name of the source.
# #
def git_source_named(name) def git_source_named(name)
specified_source = aggregate.all.find { |s| s.name == name } specified_source = aggregate.sources.find { |s| s.name == name }
unless specified_source unless specified_source
raise Informative, "Unable to find the `#{name}` repo." raise Informative, "Unable to find the `#{name}` repo."
end end
...@@ -342,7 +342,7 @@ module Pod ...@@ -342,7 +342,7 @@ module Pod
# @return [Source] The list of the git sources. # @return [Source] The list of the git sources.
# #
def git_sources def git_sources
aggregate.all.select do |source| aggregate.sources.select do |source|
git_repo?(source.data_provider.repo) git_repo?(source.data_provider.repo)
end end
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment