gitlabhq/lib/tasks/gitolite_rebuild.rake
Dmitriy Zaporozhets 2d81f4880e keys migrate
2011-12-05 19:27:41 +02:00

19 lines
433 B
Ruby

desc "Rebuild each project at gitolite config"
task :gitolite_rebuild => :environment do
puts "Starting Projects"
Project.find_each(:batch_size => 100) do |project|
puts
puts "=== #{project.name}"
project.update_repository
puts
end
puts "Done with projects"
puts "Starting Key"
Key.find_each(:batch_size => 100) do |project|
project.update_repository
print '.'
end
puts "Done with keys"
end