mirror of
https://github.com/fluent/fluentd-ui.git
synced 2026-05-05 10:56:11 +02:00
Add clean task to remove all files/directories under tmp/
Please use this task carefully...
This commit is contained in:
parent
b8fda0f15b
commit
fc707d700c
8
lib/tasks/clean.rake
Normal file
8
lib/tasks/clean.rake
Normal file
@ -0,0 +1,8 @@
|
||||
require 'fileutils'
|
||||
|
||||
desc "clean all files/directories in tmp/ directory (use carefully)"
|
||||
task :clean do
|
||||
tmp_directory = File.join(Rails.root, "tmp")
|
||||
system("rm -rf #{tmp_directory}")
|
||||
system("mkdir #{tmp_directory}")
|
||||
end
|
||||
Loading…
x
Reference in New Issue
Block a user