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

18 lines
407 B
Ruby
Raw Normal View History

# 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 scheduler log files'
task :scheduler 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', "scheduler_#{suffix}.log"), '')
end
end
end
end
end