Method: Pantry::UI#progress_start
- Defined in:
- lib/pantry/ui.rb
#progress_start(tick_count) ⇒ Object
Start a new progress meter with the given number of ticks
45 46 47 48 49 50 51 |
# File 'lib/pantry/ui.rb', line 45 def progress_start(tick_count) require 'ruby-progressbar' @progress = ProgressBar.create( total: tick_count, output: @output, format: "Progress: %P%% |%B| %c/%C %e" ) end |