Sha256: e80498c65ce11adaca165af923d9653ef067ee6c224659cd978f3086ca68c742

Contents?: true

Size: 418 Bytes

Versions: 2

Compression:

Stored size: 418 Bytes

Contents

if RUBY_VERSION < '1.9.2'
 require 'win32/process'
 module Process
   def self.spawn command, args = {}
     options = {:app_name => command}
     startup_info = {}
     if args[:out]
       startup_info[:stdout] = File.open(args[:out], 'w') # it only accepts descriptors
     end
     options[:startup_info] = startup_info
     a = Process.create options
     a.process_id
     
   end
 end
 
 
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
windows_backport_process_spawn-0.1.1 lib/windows_backport_process_spawn.rb
windows_backport_process_spawn-0.1.0 lib/windows_backport_process_spawn.rb