trabajo-afectivo/lib/tasks/zammad/flush/log/websocket.rake

16 lines
345 B
Ruby
Raw Normal View History

2018-10-01 17:41:17 +00:00
namespace :zammad do
namespace :flush do
namespace :log do
desc 'Flushes all websocket server log files'
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