keys migrate
This commit is contained in:
parent
bdc658095c
commit
2d81f4880e
1 changed files with 9 additions and 2 deletions
|
@ -1,11 +1,18 @@
|
||||||
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
|
||||||
|
|
Loading…
Reference in a new issue