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
99ef21e1
Commit
99ef21e1
authored
Dec 14, 2012
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Downloader] Update and new API.
parent
6cbbd909
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
4 deletions
+41
-4
Gemfile.lock
Gemfile.lock
+1
-1
downloader.rb
lib/cocoapods/downloader.rb
+40
-3
No files found.
Gemfile.lock
View file @
99ef21e1
...
...
@@ -17,7 +17,7 @@ GIT
GIT
remote: git://github.com/CocoaPods/cocoapods-downloader
revision:
4ec997acca892f238aa8ced4edf37e95e69b5127
revision:
d07096a3ab8c74ac34853fccfa968d55097fcbf2
specs:
cocoapods-downloader (0.1.0)
...
...
lib/cocoapods/downloader.rb
View file @
99ef21e1
...
...
@@ -9,13 +9,50 @@ module Pod
Executable
.
execute_command
(
executable
,
command
,
raise_on_failure
=
false
)
end
def
download_action
(
ui_message
)
UI
.
section
(
" >
#{
ui_message
}
"
,
''
,
1
)
do
# Indicates that an action will be perfomed. The action is passed as a
# block.
#
# @param [String] message
# The message associated with the action.
#
# @yield The action, this block is always exectued.
#
# @retur [void]
#
def
ui_action
(
message
)
UI
.
section
(
" >
#{
message
}
"
,
''
,
1
)
do
yield
end
end
end
# Indicates that a minor action will be perfomed. The action is passed as
# a block.
#
# @param [String] message
# The message associated with the action.
#
# @yield The action, this block is always exectued.
#
# @retur [void]
#
def
ui_sub_action
(
message
)
UI
.
section
(
" >
#{
message
}
"
,
''
,
2
)
do
yield
end
end
# Prints an UI message.
#
# @param [String] message
# The message associated with the action.
#
# @retur [void]
#
def
ui_message
(
message
)
UI
.
puts
message
end
end
end
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