Sha256: e3e853d4e36b0829ac9077b070504f0310d79394ca2276637e43d60ebb7a5399

Contents?: true

Size: 630 Bytes

Versions: 5

Compression:

Stored size: 630 Bytes

Contents

module Excon
  module Test
    module Plugin
      module Server
        module Puma
          def start(app_str = app, bind_uri = bind)
            open_process('puma', '-b', bind_uri.to_s, app_str)
            process_stderr = ""
            line = ''
            until line =~ /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

5 entries across 5 versions & 2 rubygems

Version Path
vagrant-unbundled-2.2.19.0 vendor/bundle/ruby/3.0.0/gems/excon-0.88.0/lib/excon/test/plugin/server/puma.rb
vagrant-unbundled-2.2.18.0 vendor/bundle/ruby/3.0.0/gems/excon-0.88.0/lib/excon/test/plugin/server/puma.rb
excon-0.88.0 lib/excon/test/plugin/server/puma.rb
excon-0.87.0 lib/excon/test/plugin/server/puma.rb
excon-0.86.0 lib/excon/test/plugin/server/puma.rb