Module: DataAnon::Core::DSL

Includes:
Utils::Logging
Defined in:
lib/core/dsl.rb

Instance Method Summary collapse

Methods included from Utils::Logging

#logger, #logger=

Instance Method Details

#database(name, &block) ⇒ Object


6
7
8
9
10
11
# File 'lib/core/dsl.rb', line 6

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