Permalink
Browse files

remove TODO, cause it's already done

  • Loading branch information...
1 parent 90d9c69 commit 0095b8b0b22b7a138741a4e9b0b98b4fc3f613bf @mvj3 committed Mar 11, 2013
Showing with 0 additions and 1 deletion.
  1. +0 −1 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

0 comments on commit 0095b8b

Please sign in to comment.