summaryrefslogtreecommitdiff
path: root/lib/gitlab/import_export.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-03-06 18:08:08 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-03-06 18:08:08 +0000
commit83731155d997ae24c7e0cd5ffa6f0dba41bec6dc (patch)
tree31f785012137fda4ac9a470f4f07c961b42d0299 /lib/gitlab/import_export.rb
parent57a37ce99f297cddae12cb4d982b6d572f932bb4 (diff)
downloadgitlab-ce-83731155d997ae24c7e0cd5ffa6f0dba41bec6dc.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/import_export.rb')
-rw-r--r--lib/gitlab/import_export.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/gitlab/import_export.rb b/lib/gitlab/import_export.rb
index 1033e6c4e05..52102b6f508 100644
--- a/lib/gitlab/import_export.rb
+++ b/lib/gitlab/import_export.rb
@@ -42,6 +42,18 @@ module Gitlab
"project.wiki.bundle"
end
+ def snippet_repo_bundle_dir
+ 'snippets'
+ end
+
+ def snippets_repo_bundle_path(absolute_path)
+ File.join(absolute_path, ::Gitlab::ImportExport.snippet_repo_bundle_dir)
+ end
+
+ def snippet_repo_bundle_filename_for(snippet)
+ "#{snippet.hexdigest}.bundle"
+ end
+
def config_file
Rails.root.join('lib/gitlab/import_export/project/import_export.yml')
end