From 0095b8b0b22b7a138741a4e9b0b98b4fc3f613bf Mon Sep 17 00:00:00 2001 From: David Chen Date: Mon, 11 Mar 2013 11:51:13 +0800 Subject: [PATCH] remove TODO, cause it's already done --- lib/only_one_rake.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/only_one_rake.rb b/lib/only_one_rake.rb index 4804115..7e91dc4 100644 --- a/lib/only_one_rake.rb +++ b/lib/only_one_rake.rb @@ -11,7 +11,6 @@ def working_dir_equal? working_dir end end - # TODO support not only one namespace def self.ensure_only_one_task_is_running name oors = `ps -u #{WHOAMI} -ef | grep rake | grep -v '/bash ' | grep -v 'grep rake'`.split("\n").map {|line| ProcessStatusLine.new *line.split(" ", 8) } Process.exit! 0 if oors.select {|oor| oor.namespace_equal?(name) && oor.working_dir_equal?(`pwd`) }.size > 1