Commit 34d53644 authored by Samuel E. Giddins's avatar Samuel E. Giddins

Merge pull request #4266 from CocoaPods/seg-post-install-message

[Installer] Print a post-install message
parents 1b55d757 241c33ed
...@@ -19,6 +19,10 @@ To install release candidates run `[sudo] gem install cocoapods --pre` ...@@ -19,6 +19,10 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
[DJ Tarazona](https://github.com/djtarazona) [DJ Tarazona](https://github.com/djtarazona)
[#4188](https://github.com/CocoaPods/CocoaPods/issues/4188) [#4188](https://github.com/CocoaPods/CocoaPods/issues/4188)
* A post-install summary of the pods installed is now printed.
[Samuel Giddins](https://github.com/segiddins)
[#4124](https://github.com/CocoaPods/CocoaPods/issues/4124)
##### Bug Fixes ##### Bug Fixes
* Give a meaningful message for the case where there is no available stable * Give a meaningful message for the case where there is no available stable
......
...@@ -462,6 +462,16 @@ module Pod ...@@ -462,6 +462,16 @@ module Pod
run_plugins_post_install_hooks run_plugins_post_install_hooks
warn_for_deprecations warn_for_deprecations
lock_pod_sources lock_pod_sources
print_post_install_message
end
def print_post_install_message
podfile_dependencies = podfile.dependencies.uniq.size
pods_installed = root_specs.size
UI.info('Pod installation complete! ' \
"There #{podfile_dependencies == 1 ? 'is' : 'are'} #{podfile_dependencies} " \
"#{'dependency'.pluralize(podfile_dependencies)} from the Podfile " \
"and #{pods_installed} total #{'pod'.pluralize(pods_installed)} installed.")
end end
# Runs the registered callbacks for the plugins post install hooks. # Runs the registered callbacks for the plugins post install hooks.
......
Subproject commit 93b2f9029b107a7a69dc91b0627fa7c9db779583 Subproject commit 6989ebd54e1aeae47706b375057791b4f2c93bbb
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