Merge pull request #173 from fluent/add_task_to_clean_under_temp

Add task to clean under tmp/ directory
This commit is contained in:
uu59 2015-04-08 10:48:11 +09:00
commit fe993e01ba

6
lib/tasks/clean.rake Normal file
View File

@ -0,0 +1,6 @@
desc "clean all files/directories in tmp/ directory (use carefully)"
task :clean do
tmp_directory = Rails.root.join("tmp")
tmp_directory.rmtree
tmp_directory.mkdir
end