Skip to content

Commit

Permalink
Add silent option for rethinkdbdash package
Browse files Browse the repository at this point in the history
  • Loading branch information
gibson committed Mar 5, 2018
1 parent 9de7757 commit b655e42
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/migrate.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ function validateOptions (options) {
username: Joi.string().description('Rethinkdb username'),
password: Joi.string().description('Rethinkdb password'),
authKey: Joi.string().description('Rethinkdb authkey'),
silent: Joi.boolean().default(false).description('Suppress logs'),
discovery: Joi.any().when('driver', { is: 'rethinkdb', then: Joi.any().forbidden(), otherwise: Joi.boolean() })
.description('Whether or not the driver should try to keep a list of updated hosts'),
pool: Joi.any().when('driver', { is: 'rethinkdb', then: Joi.any().forbidden(), otherwise: Joi.boolean().default(false) })
Expand Down Expand Up @@ -121,7 +122,7 @@ function selectDriver (options) {
if (options.driver === 'rethinkdb') {
return require('rethinkdb')
}
return require('rethinkdbdash')(Mask(options, 'db,user,host,port,username,password,authKey,discovery,pool,cursor,servers,ssl'))
return require('rethinkdbdash')(Mask(options, 'db,user,host,port,username,password,authKey,silent,discovery,pool,cursor,servers,ssl'))
}

function createDbIfInexistent (options) {
Expand Down

0 comments on commit b655e42

Please sign in to comment.