Commit e6c4a42a authored by Luke Redpath's avatar Luke Redpath

Have install_dependencies! return an array of LocalPod instances so they can be used

throughout the installation process.
parent dca4cb2d
......@@ -57,7 +57,8 @@ module Pod
end
def install_dependencies!
build_specifications.each do |spec|
build_specifications.map do |spec|
Pod.new(sandbox, spec).tap do |pod|
if spec.pod_destroot.exist? || spec.local?
message = "Using #{spec}"
message += " [LOCAL]" if spec.local?
......@@ -65,7 +66,6 @@ module Pod
else
puts "Installing #{spec}" unless config.silent?
spec = spec.part_of_specification if spec.part_of_other_pod?
pod = Pod.new(sandbox, spec)
downloader = Downloader.for_pod(pod)
downloader.download
......@@ -76,10 +76,11 @@ module Pod
end
end
end
end
def install!
puts "Installing dependencies of: #{@podfile.defined_in_file}" if config.verbose?
install_dependencies!
pods = install_dependencies!
root = config.project_pods_root
headers_symlink_root = config.headers_symlink_root
......
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