From 26590df3247087ae5ecc2361f11bf515167e416a Mon Sep 17 00:00:00 2001 From: Max Howell Date: Mon, 8 Jun 2009 15:57:58 +0100 Subject: [PATCH] Pathname.mv_from is useful to us --- Library/Homebrew/brewkit.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Library/Homebrew/brewkit.rb b/Library/Homebrew/brewkit.rb index 8a0aa83875..99e198ff1e 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