Sha256: 52438a3b07c14013bb9481091f297991aa1a4c4dc0c884d60b38e1b2b2b39521

Contents?: true

Size: 1.24 KB

Versions: 13

Compression:

Stored size: 1.24 KB

Contents

= childprocess

This gem aims at being a simple and reliable solution for controlling
external programs running in the background on any Ruby / OS combination.

The code originated in the selenium-webdriver gem, but should prove useful as
a standalone library.

== Usage

   process = ChildProcess.build("ruby", "-e", "sleep").start

   process.started?  #=> true
   process.alive?    #=> true
   process.exited?   #=> false

   process.stop

The object returned from ChildProcess.build will implement ChildProcess::AbstractProcess.

== Implementation

How the process is launched and killed depends on the platform:

* Unix     : fork + exec
* Windows  : CreateProcess and friends
* JRuby    : java.lang.{Process,ProcessBuilder}
* IronRuby : System.Diagnostics.Process


== Note on Patches/Pull Requests

* Fork the project.
* Make your feature addition or bug fix.
* Add tests for it. This is important so I don't break it in a
  future version unintentionally.
* Commit, do not mess with rakefile, version, or history.
  (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
* Send me a pull request. Bonus points for topic branches.

== Copyright

Copyright (c) 2010 Jari Bakken. See LICENSE for details.

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
childprocess-0.1.4 README.rdoc
childprocess-0.1.3 README.rdoc
childprocess-0.1.2 README.rdoc
childprocess-0.1.1 README.rdoc
childprocess-0.1.0 README.rdoc
childprocess-0.0.9 README.rdoc
childprocess-0.0.7 README.rdoc
childprocess-0.0.6 README.rdoc
childprocess-0.0.5 README.rdoc
childprocess-0.0.4 README.rdoc
childprocess-0.0.3 README.rdoc
childprocess-0.0.2 README.rdoc
childprocess-0.0.1 README.rdoc