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
- Host: GitHub
- URL: https://github.com/featurist/procession
- Owner: featurist
- Created: 2013-08-28T13:42:58.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-12-11T16:43:27.000Z (over 10 years ago)
- Last Synced: 2024-11-07T21:17:50.018Z (6 months ago)
- Language: Ruby
- Size: 209 KB
- Stars: 1
- Watchers: 5
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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
```