Class: Gitlab::Git::RepositoryCleaner

Inherits:
Object
  • Object
show all
Includes:
WrapsGitalyErrors
Defined in:
lib/gitlab/git/repository_cleaner.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from WrapsGitalyErrors

#wrapped_gitaly_errors

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

#repositoryObject (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