Class: Gitlab::GitalyClient::CleanupService
- Inherits:
-
Object
- Object
- Gitlab::GitalyClient::CleanupService
- Includes:
- WithFeatureFlagActors
- Defined in:
- lib/gitlab/gitaly_client/cleanup_service.rb
Instance Attribute Summary collapse
-
#gitaly_repo ⇒ Object
readonly
Returns the value of attribute gitaly_repo.
-
#repository ⇒ Object
readonly
Returns the value of attribute repository.
-
#storage ⇒ Object
readonly
Returns the value of attribute storage.
Attributes included from WithFeatureFlagActors
Instance Method Summary collapse
- #apply_bfg_object_map_stream(io, &blk) ⇒ Object
-
#initialize(repository) ⇒ CleanupService
constructor
‘repository’ is a Gitlab::Git::Repository.
Methods included from WithFeatureFlagActors
#gitaly_client_call, #gitaly_feature_flag_actors, #group_actor, #project_actor, #user_actor
Constructor Details
#initialize(repository) ⇒ CleanupService
‘repository’ is a Gitlab::Git::Repository
11 12 13 14 15 16 17 |
# File 'lib/gitlab/gitaly_client/cleanup_service.rb', line 11 def initialize(repository) @repository = repository @gitaly_repo = repository.gitaly_repository @storage = repository.storage self.repository_actor = repository end |
Instance Attribute Details
#gitaly_repo ⇒ Object (readonly)
Returns the value of attribute gitaly_repo.
8 9 10 |
# File 'lib/gitlab/gitaly_client/cleanup_service.rb', line 8 def gitaly_repo @gitaly_repo end |
#repository ⇒ Object (readonly)
Returns the value of attribute repository.
8 9 10 |
# File 'lib/gitlab/gitaly_client/cleanup_service.rb', line 8 def repository @repository end |
#storage ⇒ Object (readonly)
Returns the value of attribute storage.
8 9 10 |
# File 'lib/gitlab/gitaly_client/cleanup_service.rb', line 8 def storage @storage end |
Instance Method Details
#apply_bfg_object_map_stream(io, &blk) ⇒ Object
19 20 21 22 23 24 25 26 27 28 |
# File 'lib/gitlab/gitaly_client/cleanup_service.rb', line 19 def apply_bfg_object_map_stream(io, &blk) response = gitaly_client_call( storage, :cleanup_service, :apply_bfg_object_map_stream, build_object_map_enum(io), timeout: GitalyClient.long_timeout ) response.each(&blk) end |