Commit 18d1c84d authored by Samuel E. Giddins's avatar Samuel E. Giddins

[Resolver] Only indicate progress when in verbose mode

parent 51dc5970
......@@ -7,7 +7,7 @@ GIT
GIT
remote: https://github.com/CocoaPods/Core.git
revision: 86c02faa738990d2ab10bbe07339de681637f8b4
revision: 802401562948abf9f4f417ace4cd8e9bb8b08859
branch: resolver
specs:
cocoapods-core (0.34.4)
......
......@@ -218,6 +218,8 @@ module Pod
include Molinillo::UI
include Config::Mixin
# The UI object the resolver should use for displaying user-facing output.
#
# @return [UserInterface] the normal CocoaPods UI object.
......@@ -227,12 +229,31 @@ module Pod
end
# Called before resolution starts. We print out `Resolving dependencies` in
# the analyzer, so here we just want to print out a starting `.`.
# the analyzer, so here we just want to print out a starting `.` in verbose
# mode.
#
# @return [Void]
#
def before_resolution
UI.print '.'
UI.print '.' if config.verbose
end
# Called after resolution ends. We don't want to {#indicate_progress}
# unless in verbose mode, so we only use the default implementation then.
#
# @return [Void]
#
def after_resolution
super if config.verbose
end
# Called during resolution to indicate progress.
# We only use the default implementation in verbose mode.
#
# @return [Void]
#
def indicate_progress
super if config.verbose
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