Class: Gitlab::PhabricatorImport::Issues::Importer

Inherits:
Object
  • Object
show all
Defined in:
lib/gitlab/phabricator_import/issues/importer.rb

Instance Method Summary collapse

Constructor Details

#initialize(project, after = nil) ⇒ Importer

Returns a new instance of Importer.


6
7
8
# File 'lib/gitlab/phabricator_import/issues/importer.rb', line 6

def initialize(project, after = nil)
  @project, @after = project, after
end

Instance Method Details

#executeObject


10
11
12
13
14
15
16
# File 'lib/gitlab/phabricator_import/issues/importer.rb', line 10

def execute
  schedule_next_batch

  tasks_response.tasks.each do |task|
    TaskImporter.new(project, task).execute
  end
end