diff options
| author | Max Howell | 2009-12-01 10:54:59 +0000 |
|---|---|---|
| committer | Max Howell | 2009-12-01 12:07:34 +0000 |
| commit | 6a51faf37f236c8d7f6bd97c0725e7a9657f6180 (patch) | |
| tree | ce29ad5fc32317521d29196f99595b85a8acd9ed /Library | |
| parent | b5d132eca798e4cc1a37da6ea9ddfda32c2fa5e6 (diff) | |
| download | homebrew-6a51faf37f236c8d7f6bd97c0725e7a9657f6180.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' |
