Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
cocoapods
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
cocoapods
Commits
bfbd6924
Commit
bfbd6924
authored
Nov 03, 2014
by
Eloy Durán
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Resolver] Use Molinillo debug output in verbose mode.
parent
3cbfa114
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
11 deletions
+20
-11
resolver.rb
lib/cocoapods/resolver.rb
+20
-11
No files found.
lib/cocoapods/resolver.rb
View file @
bfbd6924
...
@@ -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
#-------------------------------------------------------------------------#
#-------------------------------------------------------------------------#
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment