Sha256: bac53b700b9f2ed0e35ae44eaf6df6dc27d0e8fd5e01738d711295e2e0ff92e4

Contents?: true

Size: 646 Bytes

Versions: 45

Compression:

Stored size: 646 Bytes

Contents

module Excon
  module Test
    module Plugin
      module Server
        module Exec
          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
        end
      end
    end
  end
end

Version data entries

45 entries across 44 versions & 2 rubygems

Version Path
excon-1.2.3 lib/excon/test/plugin/server/exec.rb
excon-1.2.2 lib/excon/test/plugin/server/exec.rb
excon-1.2.1 lib/excon/test/plugin/server/exec.rb
excon-1.2.0 lib/excon/test/plugin/server/exec.rb
excon-1.1.1 lib/excon/test/plugin/server/exec.rb
excon-1.1.0 lib/excon/test/plugin/server/exec.rb
excon-1.0.0 lib/excon/test/plugin/server/exec.rb
excon-0.112.0 lib/excon/test/plugin/server/exec.rb
excon-0.111.0 lib/excon/test/plugin/server/exec.rb
excon-0.110.0 lib/excon/test/plugin/server/exec.rb
excon-0.109.0 lib/excon/test/plugin/server/exec.rb
excon-0.108.0 lib/excon/test/plugin/server/exec.rb
excon-0.107.0 lib/excon/test/plugin/server/exec.rb
excon-0.106.0 lib/excon/test/plugin/server/exec.rb
excon-0.105.0 lib/excon/test/plugin/server/exec.rb
excon-0.104.0 lib/excon/test/plugin/server/exec.rb
excon-0.103.0 lib/excon/test/plugin/server/exec.rb
excon-0.102.0 lib/excon/test/plugin/server/exec.rb
excon-0.101.0 lib/excon/test/plugin/server/exec.rb
excon-0.100.0 lib/excon/test/plugin/server/exec.rb