|
|
@ -20,7 +20,7 @@ namespace :gitlab do
|
|
|
|
desc "sync projects to gitlab"
|
|
|
|
desc "sync projects to gitlab"
|
|
|
|
task :projects => :environment do
|
|
|
|
task :projects => :environment do
|
|
|
|
s = Trustie::Gitlab::Sync.new
|
|
|
|
s = Trustie::Gitlab::Sync.new
|
|
|
|
Project.where(id: 505).find_each do |project|
|
|
|
|
Project.where(id: ENV["PROJECT_ID"]).find_each do |project|
|
|
|
|
s.sync_project(project, path: 'trustie', import_url: 'http://xianbo_trustie2:1234@repository.trustie.net/xianbo/trustie2.git')
|
|
|
|
s.sync_project(project, path: 'trustie', import_url: 'http://xianbo_trustie2:1234@repository.trustie.net/xianbo/trustie2.git')
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|