Permalink
Browse files

added a rake task to clean up the public/system area

  • Loading branch information...
1 parent aa4106c commit 8b38c2585b1d4d39b7439f5bce607269571cc9b9 @rnhurt committed Jan 15, 2010
Showing with 14 additions and 0 deletions.
  1. +14 −0 lib/tasks/system.rake
View
@@ -0,0 +1,14 @@
+namespace :tmp do
+ namespace :system do
+ desc "Clears all CSS & JS files in public/system "
+ task :clear => %w(system:javascript system:css)
+
+ task :javascript do
+ FileUtils.rm(Dir['public/system/[^.]*.js'])
+ end
+
+ task :css do
+ FileUtils.rm(Dir['public/system/[^.]*.css'])
+ end
+ end
+end

0 comments on commit 8b38c25

Please sign in to comment.