Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

auto find all copyright update tasks by name

Ivan Kuchin60f393379aca
diff --git a/lib/tasks/copyright.rake b/lib/tasks/copyright.rake
index 399cb7e431d..723d1b6114c 100644
--- a/lib/tasks/copyright.rake
+++ b/lib/tasks/copyright.rake
@@ -254,11 +254,8 @@ namespace :copyright do
desc "Update the copyright on all source files"
task :update, :arg1 do |_task, args|
- %w{
- css rb js js_erb css_erb html_erb json_erb text_erb atom_builder rake
- feature rdoc rjs sql yml yml_example rb_example special_files sass
- }.each do |t|
- Rake::Task["copyright:update_" + t.to_s].invoke(args[:arg1])
- end
+ Rake::Task.tasks
+ .select { |task| task.name.start_with?("copyright:update_") }
+ .each { |task| task.invoke(args[:arg1]) }
end
end