sunitparekh/data-anonymization

View on GitHub
lib/core/dsl.rb

Summary

Maintainability
A
0 mins
Test Coverage
module DataAnon
  module Core
    module DSL
      include Utils::Logging

      def database(name, &block)
        logger.debug "Processing Database: #{name}"
        database = DataAnon::Core::Database.new(name)
        database.instance_eval &block
        database.anonymize
      end

    end
  end
end

include DataAnon::Core::DSL