Skip to content

Instantly share code, notes, and snippets.

@abrons
Forked from ragaskar/spec.rake
Created July 5, 2011 18:29
Show Gist options
  • Select an option

  • Save abrons/1065501 to your computer and use it in GitHub Desktop.

Select an option

Save abrons/1065501 to your computer and use it in GitHub Desktop.

Revisions

  1. abrons revised this gist Jul 5, 2011. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion spec.rake
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    task :kill_spork do
    spork_processes = `ps aux | grep spor[k] | egrep -v grep | awk '{print $2}'`.split("\n").map(&:to_i)
    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
  2. abrons revised this gist Jul 5, 2011. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions spec.rake
    Original file line number Diff line number Diff line change
    @@ -1,7 +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}")
    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]
  3. @ragaskar ragaskar revised this gist Jul 3, 2011. 1 changed file with 5 additions and 2 deletions.
    7 changes: 5 additions & 2 deletions spec.rake
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,7 @@
    task :kill_spork do
    system("kill `ps aux | grep spork | egrep -v grep | awk '{print $2}'`")
    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
    task :spec => [:kill_spork, :cucumber]
  4. @ragaskar ragaskar created this gist Jul 2, 2011.
    4 changes: 4 additions & 0 deletions spec.rake
    Original 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