debian-mirror-gitlab/app/workers/concerns/project_start_import.rb

13 lines
231 B
Ruby
Raw Normal View History

2018-11-08 19:23:39 +05:30
# frozen_string_literal: true
2018-03-17 18:26:18 +05:30
# Used in EE by mirroring
module ProjectStartImport
2019-01-03 12:48:30 +05:30
def start(project)
if project.import_started? && project.import_jid == self.jid
2018-03-17 18:26:18 +05:30
return true
end
2019-01-03 12:48:30 +05:30
project.import_start
2018-03-17 18:26:18 +05:30
end
end