diff options
| author | Max Howell | 2009-06-08 15:57:58 +0100 |
|---|---|---|
| committer | Max Howell | 2009-06-08 15:57:58 +0100 |
| commit | 26590df3247087ae5ecc2361f11bf515167e416a (patch) | |
| tree | 0ef5984b7df112833190360ee867027379e0aa17 /Library | |
| parent | 9003225a34ed060e3434df41499f795aac090f6d (diff) | |
| download | brew-26590df3247087ae5ecc2361f11bf515167e416a.tar.bz2 | |
Pathname.mv_from is useful to us
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/brewkit.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Homebrew/brewkit.rb b/Library/Homebrew/brewkit.rb index 8a0aa8387..99e198ff1 100644 --- a/Library/Homebrew/brewkit.rb +++ b/Library/Homebrew/brewkit.rb @@ -88,6 +88,11 @@ class Pathname def mv dst FileUtils.mv to_s, dst end + + def mv_from src + FileUtils.mv src, to_s + end + def cp dst if file? FileUtils.cp to_s, dst |
