Commit bfbd6924 authored by Eloy Durán's avatar Eloy Durán

[Resolver] Use Molinillo debug output in verbose mode.

parent 3cbfa114
...@@ -221,8 +221,6 @@ module Pod ...@@ -221,8 +221,6 @@ module Pod
include Molinillo::UI include Molinillo::UI
include Config::Mixin
# The UI object the resolver should use for displaying user-facing output. # The UI object the resolver should use for displaying user-facing output.
# #
# @return [UserInterface] the normal CocoaPods UI object. # @return [UserInterface] the normal CocoaPods UI object.
...@@ -231,32 +229,43 @@ module Pod ...@@ -231,32 +229,43 @@ module Pod
UI UI
end end
# Called before resolution starts. We print out `Resolving dependencies` in # Called before resolution starts.
# the analyzer, so here we just want to print out a starting `.` in verbose #
# mode. # Completely silence this, as we show nothing in normal mode and debug
# information in verbose mode.
# #
# @return [Void] # @return [Void]
# #
def before_resolution def before_resolution
UI.print '.' if config.verbose
end end
# Called after resolution ends. We don't want to {#indicate_progress} # Called after resolution ends.
# unless in verbose mode, so we only use the default implementation then. #
# Completely silence this, as we show nothing in normal mode and debug
# information in verbose mode.
# #
# @return [Void] # @return [Void]
# #
def after_resolution def after_resolution
super if config.verbose
end end
# Called during resolution to indicate progress. # Called during resolution to indicate progress.
# We only use the default implementation in verbose mode. #
# Completely silence this, as we show nothing in normal mode and debug
# information in verbose mode.
# #
# @return [Void] # @return [Void]
# #
def indicate_progress def indicate_progress
super if config.verbose end
# Conveys debug information to the user.
# By default, prints to `STDERR` instead of {#output}.
#
# @param [Integer] depth the current depth of the resolution process.
# @return [void]
def debug?
Config.instance.verbose?
end 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