gitlab-org--gitlab-foss/lib/tasks/gitolite_rebuild.rake

19 lines
433 B
Ruby
Raw Normal View History

2011-12-05 02:43:53 -05:00
desc "Rebuild each project at gitolite config"
task :gitolite_rebuild => :environment do
2011-12-05 12:27:41 -05:00
puts "Starting Projects"
2011-12-05 02:43:53 -05:00
Project.find_each(:batch_size => 100) do |project|
puts
puts "=== #{project.name}"
project.update_repository
puts
end
2011-12-05 12:27:41 -05:00
puts "Done with projects"
puts "Starting Key"
Key.find_each(:batch_size => 100) do |project|
project.update_repository
print '.'
end
puts "Done with keys"
2011-12-05 02:43:53 -05:00
end