File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ class Local
1010 def initialize ( key = ENV [ "BROWSERSTACK_ACCESS_KEY" ] )
1111 @key = key
1212 @user_arguments = [ ]
13- @logfile = File . join ( Dir . pwd , "local .log" )
13+ @logfile = File . join ( Dir . pwd , "locl .log" )
1414 @is_windows = RbConfig ::CONFIG [ 'host_os' ] . match ( /mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/ )
1515 @exec = @is_windows ? "call" : "exec" ;
1616 end
@@ -150,11 +150,16 @@ def start_command_args
150150 end
151151
152152 def stop_command
153- "#{ @binary_path } -d stop #{ @local_identifier_flag } " . strip
153+ if @local_identifier_flag
154+ return "#{ @binary_path } -d stop -localIdentifier #{ @local_identifier_flag } " . strip
155+ else
156+ return "#{ @binary_path } -d stop" . strip
157+ end
154158 end
155159
156160 def stop_command_args
157- args = [ "#{ @binary_path } " , "-d" , "stop" , "#{ @local_identifier_flag } " ]
161+ args = [ "#{ @binary_path } " , "-d" , "stop" ]
162+ args += [ "-localIdentifier" , "#{ @local_identifier_flag } " ] if @local_identifier_flag
158163 args = args . select { |a | a . to_s != "" }
159164 args . push ( :err => [ :child , :out ] )
160165 args
You can’t perform that action at this time.
0 commit comments