Sha256: b630ddb91a05ecf8685790747f7efaab5e4e1bf7900f20c10b8e09947f2f6ec4
Contents?: true
Size: 398 Bytes
Versions: 19
Compression:
Stored size: 398 Bytes
Contents
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib/excon')) require 'open4' def local_file(*parts) File.expand_path(File.join(File.dirname(__FILE__), *parts)) end def with_rackup(configru = local_file('config.ru')) pid, w, r, e = Open4.popen4("rackup #{configru}") while `lsof -p #{pid} -P -i | grep ruby | grep TCP`.chomp.empty?; end yield Process.kill(9, pid) end
Version data entries
19 entries across 19 versions & 1 rubygems