An open API service indexing awesome lists of open source software.

https://github.com/featurist/procession

Starts a long-running process and blocks until it's ready to roll
https://github.com/featurist/procession

Last synced: 5 months ago
JSON representation

Starts a long-running process and blocks until it's ready to roll

Awesome Lists containing this project

README

        

# Procession

Runs a [child process](https://github.com/jarib/childprocess) and blocks until it writes something specific to stdout. Terminates the child process at exit time.

The following example blocks until __Server Started__ comes out of STDOUT as a result of executing __PORT=3455 /home/me/my\_project/bin/server__

```ruby
require 'procession'

Procession::Process.new(
working_dir: '/home/me/my_project/bin',
command: './server',
environment: { PORT: 3455 },
await: /Server Started/
).start
```