diff options
| author | Jack Nagel | 2012-03-06 19:23:51 -0600 |
|---|---|---|
| committer | Jack Nagel | 2012-03-06 19:23:51 -0600 |
| commit | 38fffe732f632db1e5f0e93b87fb372c701a8ed7 (patch) | |
| tree | 4c44090bd492d0dbdc5292d6d093546a8a93280d /Library/Homebrew/extend/fileutils.rb | |
| parent | fe5c47398876f1ab450a329e80d27641d086cb79 (diff) | |
| download | homebrew-38fffe732f632db1e5f0e93b87fb372c701a8ed7.tar.bz2 | |
Extend FileUtils rather than include it
Fixes #10729.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Homebrew/extend/fileutils.rb')
| -rw-r--r-- | Library/Homebrew/extend/fileutils.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Library/Homebrew/extend/fileutils.rb b/Library/Homebrew/extend/fileutils.rb index 89c7de2fe..eb08ffed4 100644 --- a/Library/Homebrew/extend/fileutils.rb +++ b/Library/Homebrew/extend/fileutils.rb @@ -1,8 +1,7 @@ require 'fileutils' # We enhance FileUtils to make our Formula code more readable. -module Homebrew::FileUtils - include FileUtils +module FileUtils extend self # Create a temporary directory then yield. When the block returns, # recursively delete the temporary directory. @@ -29,7 +28,7 @@ module Homebrew::FileUtils # A version of mkdir that also changes to that folder in a block. def mkdir name, &block - super(name) + FileUtils.mkdir(name) if block_given? chdir name do yield |
