We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 69a6d56 + ae4228e commit 8b1e6d1Copy full SHA for 8b1e6d1
lib/browserstack/local.rb
@@ -150,11 +150,16 @@ def start_command_args
150
end
151
152
def stop_command
153
- "#{@binary_path} -d stop #{@local_identifier_flag}".strip
+ 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
158
159
160
def stop_command_args
- args = ["#{@binary_path}", "-d", "stop", "#{@local_identifier_flag}"]
161
+ args = ["#{@binary_path}", "-d", "stop"]
162
+ args += ["-localIdentifier", "#{@local_identifier_flag}"] if @local_identifier_flag
163
args = args.select {|a| a.to_s != "" }
164
args.push(:err => [:child, :out])
165
args
0 commit comments