@@ -35,7 +35,7 @@ function Local(){
35
35
if ( typeof options [ 'onlyCommand' ] !== 'undefined' )
36
36
return ;
37
37
38
- const binaryPath = this . getBinaryPath ( ) ;
38
+ const binaryPath = this . getBinaryPath ( null , options [ 'bs-host' ] ) ;
39
39
that . binaryPath = binaryPath ;
40
40
childProcess . exec ( 'echo "" > ' + that . logfile ) ;
41
41
that . opcode = 'start' ;
@@ -123,7 +123,7 @@ function Local(){
123
123
callback ( ) ;
124
124
}
125
125
} ) ;
126
- } ) ;
126
+ } , options [ 'bs-host' ] ) ;
127
127
} ;
128
128
129
129
this . isRunning = function ( ) {
@@ -249,7 +249,7 @@ function Local(){
249
249
}
250
250
} ;
251
251
252
- this . getBinaryPath = function ( callback ) {
252
+ this . getBinaryPath = function ( callback , bsHost ) {
253
253
if ( typeof ( this . binaryPath ) == 'undefined' ) {
254
254
this . binary = new LocalBinary ( ) ;
255
255
var conf = { } ;
@@ -261,9 +261,9 @@ function Local(){
261
261
conf . useCaCertificate = this . useCaCertificate ;
262
262
}
263
263
if ( ! callback ) {
264
- return this . binary . binaryPath ( conf , this . key , this . retriesLeft ) ;
264
+ return this . binary . binaryPath ( conf , bsHost , this . key , this . retriesLeft ) ;
265
265
}
266
- this . binary . binaryPath ( conf , this . key , this . retriesLeft , callback ) ;
266
+ this . binary . binaryPath ( conf , bsHost , this . key , this . retriesLeft , callback ) ;
267
267
} else {
268
268
console . log ( 'BINARY PATH IS DEFINED' ) ;
269
269
if ( ! callback ) {
0 commit comments