2021-06-01 12:20:20 +00:00
|
|
|
# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/
|
|
|
|
|
2018-10-01 17:41:17 +00:00
|
|
|
namespace :zammad do
|
|
|
|
|
|
|
|
namespace :flush do
|
|
|
|
|
|
|
|
namespace :log do
|
|
|
|
|
|
|
|
desc 'Flushes all websocket server log files'
|
2020-02-18 19:51:31 +00:00
|
|
|
task :websocket do # rubocop:disable Rails/RakeEnvironment
|
2018-10-01 17:41:17 +00:00
|
|
|
%w[err out].each do |suffix|
|
|
|
|
File.write(Rails.root.join('log', "websocket-server_#{suffix}.log"), '')
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|