Commit b3354c62 authored by Boris Bügling's avatar Boris Bügling Committed by Kyle Fuller

Do not rely on *~/.cocoapods* being present.

parent 33b4e884
......@@ -9,6 +9,7 @@ module Pod
# known Pods.
#
def aggregate
return Source::Aggregate.new([]) unless config.repos_dir.exist?
dirs = config.repos_dir.children.select(&:directory?)
Source::Aggregate.new(dirs)
end
......@@ -60,6 +61,7 @@ module Pod
# installation of CocoaPods.
#
def all
return [] unless config.repos_dir.exist?
dirs = config.repos_dir.children.select(&:directory?)
dirs.map { |repo| Source.new(repo) }
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