Class: TaliaUtil::BarProgressor

Inherits:
Object
  • Object
show all
Defined in:
lib/talia_util/bar_progressor.rb

Overview

Helper class for command-line progress bars as progressor objects

Class Method Summary collapse

Class Method Details

.run_with_progress(message, size) {|progress| ... } ⇒ Object

Yields:

  • (progress)


8
9
10
11
12
# File 'lib/talia_util/bar_progressor.rb', line 8

def self.run_with_progress(message, size)
  progress = ProgressBar.new(message, size)
  yield(progress)
  progress.finish
end