mirror of
https://github.com/fluent/fluentd-ui.git
synced 2025-08-20 05:51:11 +02:00
Merge pull request #173 from fluent/add_task_to_clean_under_temp
Add task to clean under tmp/ directory
This commit is contained in:
commit
fe993e01ba
6
lib/tasks/clean.rake
Normal file
6
lib/tasks/clean.rake
Normal 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
|
Loading…
x
Reference in New Issue
Block a user