BigW Consortium Gitlab

Commit 2d81f488 by Dmitriy Zaporozhets

keys migrate

parent bdc65809
desc "Rebuild each project at gitolite config" desc "Rebuild each project at gitolite config"
task :gitolite_rebuild => :environment do task :gitolite_rebuild => :environment do
puts "Starting..." puts "Starting Projects"
Project.find_each(:batch_size => 100) do |project| Project.find_each(:batch_size => 100) do |project|
puts puts
puts "=== #{project.name}" puts "=== #{project.name}"
project.update_repository project.update_repository
puts puts
end end
puts "Done" 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 end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment