16 lines
305 B
Ruby
16 lines
305 B
Ruby
|
namespace :zammad do
|
||
|
|
||
|
namespace :flush do
|
||
|
|
||
|
namespace :log do
|
||
|
|
||
|
desc 'Flushes all websocket server log files'
|
||
|
task :websocket do
|
||
|
%w[err out].each do |suffix|
|
||
|
File.write(Rails.root.join('log', "websocket-server_#{suffix}.log"), '')
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|