Class: Gitlab::ImportExport::SnippetRepoSaver

Inherits:
RepoSaver
  • Object
show all
Defined in:
lib/gitlab/import_export/snippet_repo_saver.rb

Constant Summary

Constants included from CommandLineUtil

CommandLineUtil::CLEAN_DIR_IGNORE_FILE_NAMES, CommandLineUtil::CommandLineUtilError, CommandLineUtil::DEFAULT_DIR_MODE, CommandLineUtil::FileOversizedError, CommandLineUtil::HardLinkError, CommandLineUtil::UNTAR_MASK

Instance Attribute Summary

Attributes inherited from RepoSaver

#exportable, #shared

Instance Method Summary collapse

Methods inherited from RepoSaver

#repository, #save

Methods included from CommandLineUtil

#gunzip, #gzip, #gzip_with_options, #mkdir_p, #tar_cf, #tar_czf, #untar_xf, #untar_zxf

Constructor Details

#initialize(project:, shared:, repository:) ⇒ SnippetRepoSaver

Returns a new instance of SnippetRepoSaver.



6
7
8
9
10
# File 'lib/gitlab/import_export/snippet_repo_saver.rb', line 6

def initialize(project:, shared:, repository:)
  @project = project
  @shared = shared
  @repository = repository
end