class DataAnon::Utils::ParallelProgressBar
Public Class Methods
new(table_name, total)
click to toggle source
# File lib/utils/parallel_progress_bar.rb, line 9 def initialize table_name, total @total = total @table_name = table_name end
Protected Instance Methods
show_progress(index)
click to toggle source
# File lib/utils/parallel_progress_bar.rb, line 16 def show_progress index suffix = started(index) ? "STARTED" : (complete(index) ? "COMPLETE" : "") logger.info("%-30s [ %7d/%-7d ] %s" % [@table_name, index, @total, suffix]) end