12 lines
302 B
Ruby
12 lines
302 B
Ruby
|
namespace :gitlab do
|
||
|
desc "sync gitlab's commit acts to trustie"
|
||
|
task :unused => :environment do
|
||
|
begin
|
||
|
Project.where("id in (161,236,266)").update_all(:gpid => nil)
|
||
|
Repository.where("project_id in (161,236,266)").destroy_all
|
||
|
rescue Exception => e
|
||
|
puts e
|
||
|
end
|
||
|
end
|
||
|
end
|