summaryrefslogtreecommitdiff
path: root/lib/bulk_imports/importers/group_importer.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bulk_imports/importers/group_importer.rb')
-rw-r--r--lib/bulk_imports/importers/group_importer.rb35
1 files changed, 0 insertions, 35 deletions
diff --git a/lib/bulk_imports/importers/group_importer.rb b/lib/bulk_imports/importers/group_importer.rb
deleted file mode 100644
index f016b552fd4..00000000000
--- a/lib/bulk_imports/importers/group_importer.rb
+++ /dev/null
@@ -1,35 +0,0 @@
-# frozen_string_literal: true
-
-module BulkImports
- module Importers
- class GroupImporter
- def initialize(entity)
- @entity = entity
- end
-
- def execute
- context = BulkImports::Pipeline::Context.new(entity)
-
- pipelines.each { |pipeline| pipeline.new(context).run }
-
- entity.finish!
- end
-
- private
-
- attr_reader :entity
-
- def pipelines
- [
- BulkImports::Groups::Pipelines::GroupPipeline,
- BulkImports::Groups::Pipelines::SubgroupEntitiesPipeline,
- BulkImports::Groups::Pipelines::MembersPipeline,
- BulkImports::Groups::Pipelines::LabelsPipeline,
- BulkImports::Groups::Pipelines::MilestonesPipeline
- ]
- end
- end
- end
-end
-
-BulkImports::Importers::GroupImporter.prepend_if_ee('EE::BulkImports::Importers::GroupImporter')