lib/yui_rest_client/app.rb
# wait until the specified port is open or until the timeout is reached
# @raise YuiRestClient::Error::TimeoutError if the port is not opened in time
wait until the specified port is open or until the timeout is reached
wait until the specified port is open or until the timeout is reached
def connect
      Wait.until(timeout: YuiRestClient.timeout, interval: YuiRestClient.interval) do
        YuiRestClient.logger.debug("Waiting for #{@host}:#{@port}...")
        port_open?
      end
      self
    end
def connect Wait . until ( timeout : YuiRestClient . timeout , interval : YuiRestClient . interval ) do YuiRestClient . logger . debug ( "Waiting for #{@host}:#{@port}..." ) port_open? end self end
wait until the specified port is open or until the timeout is reached
wait until the specified port is open or until the timeout is reached
:Error::TimeoutError if the port is not opened in time
: Error :: TimeoutError if the port is not opened in time