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