Skip to content

Commit

Permalink
remove TODO, cause it's already done
Browse files Browse the repository at this point in the history
  • Loading branch information
dchentech committed Mar 11, 2013
1 parent 90d9c69 commit 0095b8b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/only_one_rake.rb
Expand Up @@ -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
Expand Down

0 comments on commit 0095b8b

Please sign in to comment.