Class: Gitlab::PhabricatorImport::Issues::Importer
- Inherits:
-
Object
- Object
- Gitlab::PhabricatorImport::Issues::Importer
- Defined in:
- lib/gitlab/phabricator_import/issues/importer.rb
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(project, after = nil) ⇒ Importer
constructor
A new instance of Importer.
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
#execute ⇒ Object
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 |