-
-
Save Marahin/65dea75919283ddfb1fcb6335c2002e2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'pry' | |
JOBS = [ | |
"bin/rspec_rerun spec", | |
"bin/quality" | |
].freeze | |
child_pids = JOBS.map do |job| | |
child_pid = fork { `#{job}` } | |
sleep 0.1 | |
Process.detach(child_pid) | |
child_pid | |
end | |
binding.pry |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment