lib/pact/mock_service/server/spawn.rb in pact-mock_service-0.10.1 vs lib/pact/mock_service/server/spawn.rb in pact-mock_service-0.10.2

- old
+ new

@@ -5,18 +5,18 @@ module Server class Spawn class PortUnavailableError < StandardError; end - def self.call pidfile, port + def self.call pidfile, port, ssl = false if pidfile.can_start? if port_available? port pid = fork do yield end pidfile.pid = pid Process.detach(pid) - Server::WaitForServerUp.(port) + Server::WaitForServerUp.(port, {ssl: ssl}) pidfile.write else raise PortUnavailableError.new("ERROR: Port #{port} already in use.") end end