title: How to create a functioning progress bar in Ruby?
body: <p>I have a simple script which only has <code>apt-get update</code>. When I run it I want it to show a progress bar instead of showing all that updating it shows when you run it normally.</p>
  
  <p>This code creates a progress bar, but how do I implement it so it shows a progress bar and not all the lines which it normally shows?</p>
  
  <pre><code>require 'progress_bar'
  bar = ProgressBar.new
  
  100.times do
    sleep 0.1
    bar.increment!
  end
  </code></pre>