Skip to content
Browse files

make: added task rename

  • Loading branch information...
1 parent 583775c commit a61ea7a04b5738ad58b6f17fc4b830a63ba52391 @dg dg committed Sep 7, 2012
Showing with 11 additions and 0 deletions.
  1. +11 −0 Make/DefaultTasks.php
View
11 Make/DefaultTasks.php
@@ -128,6 +128,17 @@ function delete($path)
/**
+ * Renames a file or directory.
+ */
+ function rename($from, $to)
+ {
+ $this->project->log("Renaming $from to $to");
+ rename($from, $to);
+ }
+
+
+
+ /**
* Replaces the occurrence of a given regular expression
* with a substitution pattern in a file.
*/

0 comments on commit a61ea7a

Please sign in to comment.
Something went wrong with that request. Please try again.