Progressbar in Ruby console scripts

21 Apr 2010

Yesterday I needed a little progress bar for a small ruby terminal script. Something like this:


Sadly I could not find one, so I had to write it myself. You can install it with:

gem install simple_progressbar

The progressbar can't do very much at the moment. If you want to add more features, feel free to fork it.
A small example for the gem:

require 'simple_progressbar"Installing stuff") do
  (0..10).each {|i|
    progress i*10