Created
April 19, 2009 03:38
-
-
Save robertsosinski/97904 to your computer and use it in GitHub Desktop.
Deletes js and css cache files: Taken from maintainable software
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
namespace :tmp do | |
namespace :assets do | |
desc "Clears javascripts/cache and stylesheets/cache" | |
task :clear => :environment do | |
FileUtils.rm(Dir['public/javascripts/cache/[^.]*']) | |
FileUtils.rm(Dir['public/stylesheets/cache/[^.]*']) | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment