diff options
| author | Max Howell | 2009-06-08 15:57:58 +0100 |
|---|---|---|
| committer | Max Howell | 2009-06-08 15:57:58 +0100 |
| commit | ec5f2edb859f02021c4659797b290be7422a2069 (patch) | |
| tree | ad0cb765375f01124a5cd8bebc07f60cf2ef884d /Library | |
| parent | 36b5fcf6c020b46b8ef8223a77e76b32008d80e6 (diff) | |
| download | homebrew-ec5f2edb859f02021c4659797b290be7422a2069.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 |
