class Anonymise::Command

Public Class Methods

exit_on_failure() click to toggle source
# File lib/anonymise.rb, line 37
def self.exit_on_failure
  true
end

Public Instance Methods

fake() click to toggle source
# File lib/anonymise.rb, line 29
def fake
  db_args = { dbname: options.db, user: options.user,
              password: options.password, port: options.port,
              host: options.host }
  puts '*** DRY RUN ***' if options.dry_run
  DbFaker.new(db_args, config(options.path), options.dry_run).fake
end
version() click to toggle source
# File lib/anonymise.rb, line 16
def version
  say "Anonymise version #{Anonymise::VERSION}"
end

Private Instance Methods

config(path) click to toggle source
# File lib/anonymise.rb, line 43
def config(path)
  Resource.new(path).content
end