lib/ext/filemethods.rb in shining-1.0.2 vs lib/ext/filemethods.rb in shining-1.1.0

- old
+ new

@@ -9,9 +9,13 @@ end def dir? dir File.directory? dir end + + def move from, to + Shining.say("Moving #{from} to #{to}") { FileUtils.mv(from, to) } + end def copy from, to Shining.say("Copying #{from} to #{to}") { File.directory?(from) ? FileUtils.cp_r(from, to) : FileUtils.cp(from, to) } end \ No newline at end of file