Skip to content

Instantly share code, notes, and snippets.

@toreriklinnerud
Created October 14, 2009 22:08
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save toreriklinnerud/210448 to your computer and use it in GitHub Desktop.
Save toreriklinnerud/210448 to your computer and use it in GitHub Desktop.
Start spork before autospec if not already running
#!/usr/bin/env ruby
`ps | grep /spork$ | grep -v grep`
if $?.success?
exec('autospec')
else
IO.popen('(spork&) 2>&1') do |messages|
puts(message = messages.gets) until message =~ /ready/
exec('autospec')
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment