Class: Gitlab::Git::RepositoryCleaner
- Inherits:
-
Object
- Object
- Gitlab::Git::RepositoryCleaner
- Includes:
- WrapsGitalyErrors
- Defined in:
- lib/gitlab/git/repository_cleaner.rb
Instance Attribute Summary collapse
-
#repository ⇒ Object
readonly
Returns the value of attribute repository.
Instance Method Summary collapse
- #apply_bfg_object_map_stream(io, &blk) ⇒ Object
-
#initialize(repository) ⇒ RepositoryCleaner
constructor
‘repository’ is a Gitlab::Git::Repository.
- #rewrite_history(blobs: [], redactions: []) ⇒ Object
Methods included from WrapsGitalyErrors
Constructor Details
#initialize(repository) ⇒ RepositoryCleaner
‘repository’ is a Gitlab::Git::Repository
11 12 13 |
# File 'lib/gitlab/git/repository_cleaner.rb', line 11 def initialize(repository) @repository = repository end |
Instance Attribute Details
#repository ⇒ Object (readonly)
Returns the value of attribute repository.
8 9 10 |
# File 'lib/gitlab/git/repository_cleaner.rb', line 8 def repository @repository end |
Instance Method Details
#apply_bfg_object_map_stream(io, &blk) ⇒ Object
15 16 17 18 19 |
# File 'lib/gitlab/git/repository_cleaner.rb', line 15 def apply_bfg_object_map_stream(io, &blk) wrapped_gitaly_errors do gitaly_cleanup_client.apply_bfg_object_map_stream(io, &blk) end end |
#rewrite_history(blobs: [], redactions: []) ⇒ Object
21 22 23 24 25 |
# File 'lib/gitlab/git/repository_cleaner.rb', line 21 def rewrite_history(blobs: [], redactions: []) wrapped_gitaly_errors do gitaly_cleanup_client.rewrite_history(blobs: blobs, redactions: redactions) end end |