diff options
| author | Max Howell | 2009-12-01 10:54:59 +0000 |
|---|---|---|
| committer | Max Howell | 2009-12-01 12:07:34 +0000 |
| commit | 4cea6157a1a6ac1e06294885ee1db06d34e54de3 (patch) | |
| tree | 263cbabfa5a54efdb747df7eca4a8a7a3e186c91 /Library | |
| parent | 1dc9df13fb27193589d443178ccfb744f408f91c (diff) | |
| download | brew-4cea6157a1a6ac1e06294885ee1db06d34e54de3.tar.bz2 | |
include FileUtils into Formula
Thus mv, rm etc, functions are almost as handy as pure shell scripting, without issues related to spaces in filenames.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/formula.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 6f3fd6e48..ce637b32a 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -22,6 +22,7 @@ # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # require 'download_strategy' +require 'fileutils' class FormulaUnavailableError <RuntimeError def initialize name @@ -92,6 +93,8 @@ end # Derive and define at least @url, see Library/Formula for examples class Formula + include FileUtils + # Homebrew determines the name def initialize name='__UNKNOWN__' set_instance_variable 'url' |
