Commit 2462949f authored by Riyad Preukschas's avatar Riyad Preukschas

Update output of gitlab:gitolite:update_*

parent 31e0fa65
namespace :gitlab do
namespace :gitolite do
desc "GITLAB | Rebuild each project at gitolite config"
desc "GITLAB | Rebuild each project in Gitolite config"
task :update_repos => :environment do
puts "Starting Projects"
warn_user_is_not_gitlab
puts "Rebuilding projects ... "
Project.find_each(:batch_size => 100) do |project|
puts "\n=== #{project.name}"
puts "#{project.name_with_namespace.yellow} ... "
project.update_repository
puts
puts "... #{"done".green}"
end
puts "Done with projects"
end
desc "GITLAB | Rebuild each key at gitolite config"
desc "GITLAB | Rebuild each user key in Gitolite config"
task :update_keys => :environment do
puts "Starting Key"
warn_user_is_not_gitlab
puts "Rebuilding keys ... "
Key.find_each(:batch_size => 100) do |key|
puts "#{key.identifier.yellow} ... "
Gitlab::Gitolite.new.set_key(key.identifier, key.key, key.projects)
print '.'
puts "... #{"done".green}"
end
puts "Done with keys"
end
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