Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bulk_imports/stage.rb')
-rw-r--r--lib/bulk_imports/stage.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/bulk_imports/stage.rb b/lib/bulk_imports/stage.rb
index 103623cd030..9c19e9ea60b 100644
--- a/lib/bulk_imports/stage.rb
+++ b/lib/bulk_imports/stage.rb
@@ -2,8 +2,10 @@
module BulkImports
class Stage
- def self.pipelines
- new.pipelines
+ def initialize(bulk_import)
+ raise(ArgumentError, 'Expected an argument of type ::BulkImport') unless bulk_import.is_a?(::BulkImport)
+
+ @bulk_import = bulk_import
end
def pipelines