diff options
author | Jeroen Nijhof <jeroen@jeroennijhof.nl> | 2015-11-19 16:04:07 +0100 |
---|---|---|
committer | Jeroen Nijhof <jeroen@jeroennijhof.nl> | 2015-11-19 16:04:07 +0100 |
commit | d4690af8bc283c402e49cb8b3056c7de9d57e886 (patch) | |
tree | 0a41e4dd3afa44cd2f4d9c63b99391d0eff5e558 /app/controllers/projects_controller.rb | |
parent | 839aae0e473e85042f76391b44eaeb099235a813 (diff) | |
download | gitlab-ce-d4690af8bc283c402e49cb8b3056c7de9d57e886.tar.gz |
Use GitlabShellWorker.perform_async for housekeeping
Diffstat (limited to 'app/controllers/projects_controller.rb')
-rw-r--r-- | app/controllers/projects_controller.rb | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb index 27b723fae6a..ecaf4476246 100644 --- a/app/controllers/projects_controller.rb +++ b/app/controllers/projects_controller.rb @@ -172,14 +172,10 @@ class ProjectsController < ApplicationController end def housekeeping - status = ::Projects::HousekeepingService.new(@project).execute + ::Projects::HousekeepingService.new(@project).execute respond_to do |format| - if status - flash[:notice] = "Housekeeping finished successfully." - else - flash[:alert] = "Housekeeping failed." - end + flash[:notice] = "Housekeeping successfully started." format.html { redirect_to project_path(@project) } end end |