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
commit26590df3247087ae5ecc2361f11bf515167e416a (patch)
tree0ef5984b7df112833190360ee867027379e0aa17 /Library
parent9003225a34ed060e3434df41499f795aac090f6d (diff)
downloadbrew-26590df3247087ae5ecc2361f11bf515167e416a.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