Module: Gitlab::TemplateHelper
- Included in:
- Projects::GitlabProjectsImportService
- Defined in:
- lib/gitlab/template_helper.rb
Instance Method Summary collapse
Instance Method Details
#prepare_template_environment(file) ⇒ Object
5 6 7 8 9 |
# File 'lib/gitlab/template_helper.rb', line 5 def prepare_template_environment(file) return unless file params[:import_export_upload] = ImportExportUpload.new(import_file: file) end |
#tmp_filename ⇒ Object
11 12 13 |
# File 'lib/gitlab/template_helper.rb', line 11 def tmp_filename SecureRandom.hex end |