sunitparekh/data-anonymization

View on GitHub
lib/parallel/table.rb

Summary

Maintainability
A
0 mins
Test Coverage
require 'parallel'

module DataAnon
  module Parallel
    class Table

      def anonymize tables
        ::Parallel.each(tables) do |table|
          begin
            table.progress_bar_class DataAnon::Utils::ParallelProgressBar
            table.process
          rescue => e
            logger.error "\n#{e.message} \n #{e.backtrace}"
          end
        end
      end

    end
  end
end