Sha256: ec3db20b9fffbe5b20e5c3e6913e8bcab8e010ff687e5e559d31dd590594a9a5
Contents?: true
Size: 658 Bytes
Versions: 3
Compression:
Stored size: 658 Bytes
Contents
module Excon module Test module Plugin module Server module Puma def start(app_str = app, bind_uri = bind) open_process(RbConfig.ruby, '-S', 'puma', '-b', bind_uri.to_s, app_str) process_stderr = "" line = '' until line.include?('Use Ctrl-C to stop') line = read.gets raise process_stderr if line.nil? process_stderr << line fatal_time = elapsed_time > timeout raise 'puma server has taken too long to start' if fatal_time end true end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
excon-1.2.5 | lib/excon/test/plugin/server/puma.rb |
excon-1.2.4 | lib/excon/test/plugin/server/puma.rb |
excon-1.2.3 | lib/excon/test/plugin/server/puma.rb |