Class: Anonymise::Command
- Inherits:
-
Thor
- Object
- Thor
- Anonymise::Command
- Defined in:
- lib/anonymise.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.exit_on_failure ⇒ Object
37 38 39 |
# File 'lib/anonymise.rb', line 37 def self.exit_on_failure true end |
Instance Method Details
#fake ⇒ Object
29 30 31 32 33 34 35 |
# File 'lib/anonymise.rb', line 29 def fake db_args = { dbname: .db, user: .user, password: .password, port: .port, host: .host } puts '*** DRY RUN ***' if .dry_run DbFaker.new(db_args, config(.path), .dry_run).fake end |
#version ⇒ Object
16 17 18 |
# File 'lib/anonymise.rb', line 16 def version say "Anonymise version #{Anonymise::VERSION}" end |