aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMax Howell2009-06-08 15:57:58 +0100
committerMax Howell2009-06-08 15:57:58 +0100
commitec5f2edb859f02021c4659797b290be7422a2069 (patch)
treead0cb765375f01124a5cd8bebc07f60cf2ef884d /Library
parent36b5fcf6c020b46b8ef8223a77e76b32008d80e6 (diff)
downloadhomebrew-ec5f2edb859f02021c4659797b290be7422a2069.tar.bz2
Pathname.mv_from is useful to us
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/brewkit.rb5
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