gitlabhq/lib/tasks/gitolite_rebuild.rake

19 lines
433 B
Ruby
Raw Normal View History

2011-12-05 08:43:53 +01:00
desc "Rebuild each project at gitolite config"
task :gitolite_rebuild => :environment do
2011-12-05 18:27:41 +01:00
puts "Starting Projects"
2011-12-05 08:43:53 +01:00
Project.find_each(:batch_size => 100) do |project|
puts
puts "=== #{project.name}"
project.update_repository
puts
end
2011-12-05 18:27:41 +01: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 08:43:53 +01:00
end