gitlabhq/lib/tasks/gitlab/enable_automerge.rake
2012-04-22 16:14:01 +03:00

20 lines
483 B
Ruby

namespace :gitlab do
namespace :app do
desc "GITLAB | Enable auto merge"
task :enable_automerge => :environment do
Gitlabhq::GitHost.system.new.configure do |git|
git.admin_all_repo
end
Project.find_each do |project|
if project.repo_exists? && !project.satellite.exists?
puts "Creating satellite for #{project.name}...".green
project.satellite.create
end
end
puts "Done!".green
end
end
end