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

13 lines
230 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-02-15 15:39:39 +05:30
def start(import_state)
if import_state.started? && import_state.jid == self.jid
2018-03-17 18:26:18 +05:30
return true
end
2019-02-15 15:39:39 +05:30
import_state.start
2018-03-17 18:26:18 +05:30
end
end