A progress reporter that prints out messages about the current progress.
Methods
- D
- F
- N
- U
Attributes
[R] | file_name | |
[R] | progress | |
[R] | total_bytes |
Class Public methods
new(out_stream, *args)
Link
Instance Public methods
done()
Link
fetch(file_name, total_bytes)
Link
update(bytes)
Link
Instance Private methods
update_display(show_progress = true, new_line = false)
Link
# File ../ruby/lib/rubygems/user_interaction.rb, line 513 def update_display(show_progress = true, new_line = false) return unless @out.tty? if show_progress then @out.print "\rFetching: %s (%3d%s)" % [@file_name, @progress, @units] else @out.print "Fetching: %s" % @file_name end @out.puts if new_line end