housekeeping_service.rb 394 Bytes
Newer Older
1
2
3
4
5
# Projects::HousekeepingService class
#
# Used for git housekeeping
#
# Ex.
6
#   Projects::HousekeepingService.new(project).execute
7
8
9
10
11
12
13
14
15
16
#
module Projects
  class HousekeepingService < BaseService
    include Gitlab::ShellAdapter

    def initialize(project)
      @project = project
    end

    def execute
17
      GitlabShellWorker.perform_async(:gc, @project.path_with_namespace)
18
19
20
    end
  end
end