@@ -49,13 +49,20 @@ module.exports = {
4949 revisionKey : function ( context ) {
5050 return context . commandOptions . revision || ( context . revisionData && context . revisionData . revisionKey ) ;
5151 } ,
52- redisDeployClient : function ( context ) {
52+ redisDeployClient : function ( context , pluginHelper ) {
5353 var redisLib = context . _redisLib ;
54- var redisOptions = this . pluginConfig ;
55- redisOptions . port = this . readConfig ( 'port' ) ;
56- redisOptions . activationSuffix = this . readConfig ( 'activationSuffix' ) ;
54+ var options = {
55+ url : pluginHelper . readConfig ( 'url' ) ,
56+ host : pluginHelper . readConfig ( 'host' ) ,
57+ port : pluginHelper . readConfig ( 'port' ) ,
58+ password : pluginHelper . readConfig ( 'password' ) ,
59+ database : pluginHelper . readConfig ( 'database' ) ,
60+ maxRecentUploads : pluginHelper . readConfig ( 'maxRecentUploads' ) ,
61+ allowOverwrite : pluginHelper . readConfig ( 'allowOverwrite' ) ,
62+ activationSuffix : pluginHelper . readConfig ( 'activationSuffix' )
63+ } ;
5764
58- return new Redis ( redisOptions , redisLib ) ;
65+ return new Redis ( options , redisLib ) ;
5966 } ,
6067
6168 revisionData : function ( context ) {
0 commit comments