brgmnn/sandboxy

View on GitHub
lib/sandboxy/patch.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Commander::UI
  def progress(arr, options = {})
    bar = ProgressBar.new(
      arr.length,
      Sandboxy::UI::PROGRESS_BAR_OPTIONS.merge(options)
    )
    bar.show
    arr.each { |v| bar.increment yield(v) }
  end
end