Sha256: 08bce89df130653d58c6491a6e713858bf85f5036e7635ca0792708f3b5a92e0
Contents?: true
Size: 794 Bytes
Versions: 1
Compression:
Stored size: 794 Bytes
Contents
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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
Flucti-flucti-cli-0.1.16 | lib/flucti/tasks/progress_tasks.rb |