From 934e3b3040fcba1ff56d2cbdc6e617d12f087627 Mon Sep 17 00:00:00 2001 From: Brandon Mathis Date: Tue, 22 May 2012 19:21:29 -0500 Subject: [PATCH] Rake task 'clean' deletes each file inside of specified cache directories and generated stylesheets --- Rakefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index 78d124b..a5ca3df 100644 --- a/Rakefile +++ b/Rakefile @@ -189,7 +189,8 @@ end desc "Clean out caches: .pygments-cache, .gist-cache, .sass-cache" task :clean do - rm_rf [".pygments-cache/**", ".gist-cache/**", ".sass-cache/**", "source/stylesheets/screen.css"] + [".pygments-cache/**", ".gist-cache/**", ".sass-cache/**"].each { |dir| rm_rf Dir.glob(dir) } + rm "source/stylesheets/screen.css" puts "## Cleaned Sass, Pygments and Gist caches, removed generated stylesheets ##" end