diff options
| author | Jack Nagel | 2014-06-09 21:36:36 -0500 | 
|---|---|---|
| committer | Jack Nagel | 2014-06-09 21:37:52 -0500 | 
| commit | 7f10aa3b6ef5ec13f815ea215d6f6c735373bc86 (patch) | |
| tree | beebde44d7475de91d07f75807ef7adaa9149f57 /Library/Homebrew/extend/fileutils.rb | |
| parent | 9e57da83a29eabf7d841eaeaac733ced3b730481 (diff) | |
| download | brew-7f10aa3b6ef5ec13f815ea215d6f6c735373bc86.tar.bz2 | |
Fix visibility of FileUtils extension methods
Diffstat (limited to 'Library/Homebrew/extend/fileutils.rb')
| -rw-r--r-- | Library/Homebrew/extend/fileutils.rb | 9 | 
1 files changed, 6 insertions, 3 deletions
| diff --git a/Library/Homebrew/extend/fileutils.rb b/Library/Homebrew/extend/fileutils.rb index 06a2e3e23..f0c0322ae 100644 --- a/Library/Homebrew/extend/fileutils.rb +++ b/Library/Homebrew/extend/fileutils.rb @@ -1,7 +1,7 @@  require 'fileutils'  # We enhance FileUtils to make our Formula code more readable. -module FileUtils extend self +module FileUtils    # Create a temporary directory then yield. When the block returns,    # recursively delete the temporary directory. @@ -26,15 +26,16 @@ module FileUtils extend self    module_function :mktemp    # A version of mkdir that also changes to that folder in a block. -  alias mkdir_old mkdir +  alias_method :old_mkdir, :mkdir    def mkdir name, &block -    FileUtils.mkdir(name) +    old_mkdir(name)      if block_given?        chdir name do          yield        end      end    end +  module_function :mkdir    # The #copy_metadata method in all current versions of Ruby has a    # bad bug which causes copying symlinks across filesystems to fail; @@ -83,6 +84,8 @@ module FileUtils extend self      end    end +  private +    # Run scons using a Homebrew-installed version, instead of whatever    # is in the user's PATH    def scons *args | 
