diff options
author | James Lopez <james@jameslopez.es> | 2017-09-05 11:02:34 +0200 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2017-09-05 17:47:45 +0200 |
commit | be99f82478e023e41a543a0b9348e27d56fb3c13 (patch) | |
tree | a19d49efcf7025726eb68e9c71be0a18c79d87aa /lib | |
parent | 8ff9fc55cf876a61fcfde421b71d204d9fd33723 (diff) | |
download | gitlab-ce-be99f82478e023e41a543a0b9348e27d56fb3c13.tar.gz |
started refactoring reader
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/import_export/reader.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/gitlab/import_export/reader.rb b/lib/gitlab/import_export/reader.rb index eb7f5120592..4f061959047 100644 --- a/lib/gitlab/import_export/reader.rb +++ b/lib/gitlab/import_export/reader.rb @@ -18,7 +18,9 @@ module Gitlab attributes = @attributes_finder.find(:project) project_attributes = attributes.is_a?(Hash) ? attributes[:project] : {} - project_attributes.merge(include: build_hash(@tree)) + build_hash(@tree).each do |sub_hash| + yield(project_attributes.merge(include: sub_hash)) + end rescue => e @shared.error(e) false |