Skip to content
Browse files

Add rake task for purging cache.

  • Loading branch information...
1 parent 112d071 commit 14ecd854d274587c238eb01bc109c1272be5c10e @maxim committed
Showing with 8 additions and 0 deletions.
  1. +8 −0 tasks/hpress.rake
View
8 tasks/hpress.rake
@@ -0,0 +1,8 @@
+require 'fileutils'
+
+namespace :hpress do
+ desc 'Purge HTMLPress cache directory.'
+ task(:purge => :environment) do
+ FileUtils.rm_r(HTMLPress::Store.path)
+ end
+end

0 comments on commit 14ecd85

Please sign in to comment.
Something went wrong with that request. Please try again.