Method: ChildProcess.new
- Defined in:
- lib/childprocess.rb
.new(*args) ⇒ Object Also known as: build
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/childprocess.rb', line 15 def new(*args) case os when :macosx, :linux, :solaris, :bsd, :cygwin, :aix if posix_spawn? Unix::PosixSpawnProcess.new(args) elsif jruby? JRuby::Process.new(args) else Unix::ForkExecProcess.new(args) end when :windows Windows::Process.new(args) else raise Error, "unsupported platform #{platform_name.inspect}" end end |