module Excon::Test::Plugin::Server::Exec

Public Instance Methods

start(app_str = app) click to toggle source
# File lib/excon/test/plugin/server/exec.rb, line 6
def start(app_str = app)
  line = ''
  open_process(app)
  until line =~ /\Aready\Z/
    line = error.gets
    fatal_time = elapsed_time > timeout
    if fatal_time
      msg = "executable #{app} has taken too long to start"
      raise msg
    end
  end
  true
end