Skip to content
Snippets Groups Projects
Commit 7b2c0455 authored by Lars Kanis's avatar Lars Kanis
Browse files

better naming of FileUtils::cd

parent 6efae6a0
No related branches found
No related tags found
No related merge requests found
......@@ -7,10 +7,10 @@ load 'Rakefile.cross'
# Use forked process for chdir'ed environment, to allow parallel execution with drake
module FileUtils
alias old_fileutils_cd cd
alias unforked_fileutils_cd cd
def cd(dir, options={}, &block)
raise "forked_chdir called without block" unless block_given?
Process.waitpid(fork{ old_fileutils_cd(dir, options, &block) })
raise "chdir called without block" unless block_given?
Process.waitpid(fork{ unforked_fileutils_cd(dir, options, &block) })
end
module_function :cd
alias chdir cd
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment