Commit 979b1f4f authored by Samuel E. Giddins's avatar Samuel E. Giddins

[Downloader] Print a message in verbose mode when copying the pod

parent eeb05df6
...@@ -33,8 +33,10 @@ module Pod ...@@ -33,8 +33,10 @@ module Pod
cache = Cache.new(cache_path) cache = Cache.new(cache_path)
result = cache.download_pod(request) result = cache.download_pod(request)
if target if target
FileUtils.rm_rf target UI.message "Copying #{request.name} from `#{result.location}` to #{UI.path target}", '> ' do
FileUtils.cp_r(result.location, target) FileUtils.rm_rf target
FileUtils.cp_r(result.location, target)
end
end end
result result
ensure ensure
......
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