Class: Gitlab::JiraImport::LabelsImporter
- Inherits:
-
BaseImporter
- Object
- BaseImporter
- Gitlab::JiraImport::LabelsImporter
- Defined in:
- lib/gitlab/jira_import/labels_importer.rb
Constant Summary collapse
- MAX_LABELS =
500
Instance Attribute Summary collapse
-
#job_waiter ⇒ Object
readonly
Returns the value of attribute job_waiter.
Attributes inherited from BaseImporter
#client, #formatter, #jira_project_key, #project, #running_import
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(project) ⇒ LabelsImporter
constructor
A new instance of LabelsImporter.
Constructor Details
#initialize(project) ⇒ LabelsImporter
Returns a new instance of LabelsImporter.
10 11 12 13 |
# File 'lib/gitlab/jira_import/labels_importer.rb', line 10 def initialize(project) super @job_waiter = JobWaiter.new end |
Instance Attribute Details
#job_waiter ⇒ Object (readonly)
Returns the value of attribute job_waiter.
6 7 8 |
# File 'lib/gitlab/jira_import/labels_importer.rb', line 6 def job_waiter @job_waiter end |
Instance Method Details
#execute ⇒ Object
15 16 17 18 |
# File 'lib/gitlab/jira_import/labels_importer.rb', line 15 def execute cache_import_label(project) import_jira_labels end |