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
e1ab2c04
Commit
e1ab2c04
authored
Sep 25, 2014
by
Eloy Durán
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SourcesManager] Print `repo add` output.
This is a temporary hack, do we need to formalize this and how?
parent
99d831e8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
sources_manager.rb
lib/cocoapods/sources_manager.rb
+5
-0
No files found.
lib/cocoapods/sources_manager.rb
View file @
e1ab2c04
...
...
@@ -36,12 +36,17 @@ module Pod
def
find_or_create_source_with_url
(
url
)
unless
source
=
source_with_url
(
url
)
name
=
name_for_url
(
url
)
# Hack to ensure that `repo add` output is shown.
previous_title_level
=
UI
.
title_level
UI
.
title_level
=
0
begin
Command
::
Repo
::
Add
.
new
(
CLAide
::
ARGV
.
new
([
name
,
url
])).
run
rescue
Informative
=>
e
raise
Informative
,
"Unable to add a source with url `
#{
url
}
` "
\
"named `
#{
name
}
`.
\n
You can add it manually via "
\
"`pod repo add NAME
#{
url
}
`."
ensure
UI
.
title_level
=
previous_title_level
end
source
=
source_with_url
(
url
)
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