mockserver: fix rubocop warnings.
This commit is contained in:
parent
859a57ec16
commit
a7e6bc8c37
1 changed files with 3 additions and 3 deletions
|
@ -33,11 +33,11 @@ class Mockserver < Formula
|
|||
end
|
||||
|
||||
loop do
|
||||
Utils.popen_read("curl", "-s", "http://localhost:" + port.to_s + "/status", "-X", "PUT")
|
||||
break if $?.exitstatus == 0
|
||||
Utils.popen_read("curl", "-s", "http://localhost:#{port}/status", "-X", "PUT")
|
||||
break if $?.exitstatus.zero?
|
||||
end
|
||||
|
||||
system "curl", "-s", "http://localhost:" + port.to_s + "/stop", "-X", "PUT"
|
||||
system "curl", "-s", "http://localhost:#{port}/stop", "-X", "PUT"
|
||||
|
||||
Process.wait(mockserver)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue