Commit 99ef21e1 authored by Fabio Pelosin's avatar Fabio Pelosin

[Downloader] Update and new API.

parent 6cbbd909
......@@ -17,7 +17,7 @@ GIT
GIT
remote: git://github.com/CocoaPods/cocoapods-downloader
revision: 4ec997acca892f238aa8ced4edf37e95e69b5127
revision: d07096a3ab8c74ac34853fccfa968d55097fcbf2
specs:
cocoapods-downloader (0.1.0)
......
......@@ -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
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