Module: Excon::Test::Plugin::Server::Exec
- Defined in:
- lib/excon/test/plugin/server/exec.rb
Instance Method Summary collapse
Instance Method Details
#start(app_str = app) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/excon/test/plugin/server/exec.rb', line 6 def start(app_str = app) open_process(app_str) process_stderr = "" line = '' until line =~ /\Aready\Z/ line = error.gets raise process_stderr if line.nil? process_stderr << line fatal_time = elapsed_time > timeout if fatal_time msg = "executable #{app_str} has taken too long to start" raise msg end end true end |