cleanup rake tasks

This commit is contained in:
Nihad Abbasov 2012-09-26 04:18:10 -07:00
parent 30ee53624b
commit 83696b127b
8 changed files with 77 additions and 120 deletions

View file

@ -1,11 +1,10 @@
namespace :gitlab do
namespace :gitolite do
desc "GITLAB | Rebuild each project at gitolite config"
task :update_repos => :environment do
task :update_repos => :environment do
puts "Starting Projects"
Project.find_each(:batch_size => 100) do |project|
puts
puts "=== #{project.name}"
puts "\n=== #{project.name}"
project.update_repository
puts
end