lib/capitate/plugins/utils.rb in capitate-0.2.15 vs lib/capitate/plugins/utils.rb in capitate-0.3.1

- old
+ new

@@ -17,9 +17,27 @@ end end end end + # Delete file. + # + # ==== Options + # +path+:: Path to delete + # + def rm(path) + run_via "rm #{path}" + end + + # Delete file (recursive/force) + # + # ==== Options + # +path+:: Path to delete + # + def rm_rf(path) + run_via "rm -rf #{path}" + end + # Load template and install it. # Removes temporary files during transfer and ensures desination directory is created before install. # # See template plugin for where template paths are loaded from. # \ No newline at end of file