gitlabhq/lib/tasks/gitlab/enable_automerge.rake

18 lines
436 B
Ruby
Raw Normal View History

2012-04-21 11:45:43 +02:00
namespace :gitlab do
namespace :app do
desc "GITLAB | Enable auto merge"
task :enable_automerge => :environment do
Gitlab::Gitolite.new.enable_automerge
2012-04-21 11:45:43 +02:00
2012-04-22 14:19:09 +02:00
Project.find_each do |project|
2012-04-22 15:14:01 +02:00
if project.repo_exists? && !project.satellite.exists?
2012-04-22 14:19:09 +02:00
puts "Creating satellite for #{project.name}...".green
2012-04-22 15:14:01 +02:00
project.satellite.create
2012-04-22 14:19:09 +02:00
end
end
2012-04-21 11:45:43 +02:00
puts "Done!".green
end
end
end