Method: Gem::StreamUI::SimpleProgressReporter#initialize
- Defined in:
- lib/rubygems/user_interaction.rb
#initialize(out_stream, size, initial_message, terminal_message = "complete") ⇒ SimpleProgressReporter
Creates a new progress reporter that will write to out_stream for size items. Shows the given initial_message when progress starts and the terminal_message when it is complete.
426 427 428 429 430 431 432 433 |
# File 'lib/rubygems/user_interaction.rb', line 426 def initialize(out_stream, size, , = "complete") @out = out_stream @total = size @count = 0 @terminal_message = @out.puts end |