class DataAnon::Utils::ParallelProgressBar
Public Class Methods
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
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