mockserver: fix rubocop warnings.

This commit is contained in:
Mike McQuaid 2016-09-23 19:57:07 +01:00
parent 859a57ec16
commit a7e6bc8c37

View file

@ -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