desc <<-DESC Show a progress-bar for in-progress operations. Blocks until 100% is reached. When you create, alter or delete an entity, resulting in operations necessary for the changes to take effect, like software installation and/or configuration -- be it on one or several of your VPS's, and/or in our registries -- these operations are started processing in the background on our end. This task lets you know how much of these are left to do (roughly), and when they are all done (accurately). DESC task :progress do key, bar = nil, Utilities::ProgressBar.new("Progress", 100, $stdout) loop do progress = Progress.first(:key => key) bar.set(progress.percent) break if progress.percent >= 100 key = progress.key sleep 2 end bar.finish end