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