Skip to content

featurist/procession

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Procession

Runs a child process 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

require 'procession'

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages