Class MCollective::RPC::Progress
In: lib/mcollective/rpc/progress.rb
Parent: Object

Class that shows a progress bar, currently only supports a twirling progress bar.

You can specify a size for the progress bar if you want if you dont it will use the helper functions to figure out terminal dimensions and draw an appropriately sized bar

p = Progress.new 100.times {|i| print p.twirl(i+1, 100) + "\r"};puts

 * [ ==================================================> ] 100 / 100

Methods

new   twirl  

Public Class methods

Public Instance methods

[Validate]