Permalink
Browse files

better naming of FileUtils::cd

  • Loading branch information...
1 parent 6efae6a commit 7b2c0455589ac57c11af3ac5e4838d02928c2f86 @larskanis committed Mar 9, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 Rakefile
View
@@ -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 comments on commit 7b2c045

Please sign in to comment.