Created
October 18, 2012 03:26
-
-
Save dmcclory/3909704 to your computer and use it in GitHub Desktop.
my remove backups rake task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| task :rmbak do | |
| Dir["**/**~"].each do |f| ## "**/**" selects everything | |
| puts "removing #{f}" ## works in ruby, but isn't recursive on command line | |
| FileUtils.rm(f) | |
| end | |
| puts "rmbak: complete" | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment