Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add rake task for purging cache.

  • Loading branch information...
commit 14ecd854d274587c238eb01bc109c1272be5c10e 1 parent 112d071
@maxim authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.