-
-
Save abrons/1065501 to your computer and use it in GitHub Desktop.
Revisions
-
abrons revised this gist
Jul 5, 2011 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ task :kill_spork do spork_processes = `ps aux | grep spor[k] | awk '{print $2}'`.split("\n").map(&:to_i) spork_processes.each do |pid| Process.kill "QUIT", pid end -
abrons revised this gist
Jul 5, 2011 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,7 @@ task :kill_spork do spork_processes = `ps aux | grep spor[k] | egrep -v grep | awk '{print $2}'`.split("\n").map(&:to_i) spork_processes.each do |pid| Process.kill "QUIT", pid end end task :spec => [:kill_spork, :cucumber] -
ragaskar revised this gist
Jul 3, 2011 . 1 changed file with 5 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,7 @@ task :kill_spork do spork_processes = `ps aux | grep spork | egrep -v grep | awk '{print $2}'`.split("\n") spork_processes.each do |process| system("kill #{process}") end end task :spec => [:kill_spork, :cucumber] -
ragaskar created this gist
Jul 2, 2011 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,4 @@ task :kill_spork do system("kill `ps aux | grep spork | egrep -v grep | awk '{print $2}'`") end task :spec => :kill_spork