Class: Anonymise::Command

Inherits:
Thor
  • Object
show all
Defined in:
lib/anonymise.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.exit_on_failureObject



37
38
39
# File 'lib/anonymise.rb', line 37

def self.exit_on_failure
  true
end

Instance Method Details

#fakeObject



29
30
31
32
33
34
35
# 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

#versionObject



16
17
18
# File 'lib/anonymise.rb', line 16

def version
  say "Anonymise version #{Anonymise::VERSION}"
end