diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-02-09 18:06:55 +0100 |
---|---|---|
committer | James Edwards-Jones <jedwardsjones@gitlab.com> | 2017-01-31 22:53:57 +0000 |
commit | 5f7257c27dace1dcb9d3eb4732caf68f061a8d68 (patch) | |
tree | a00cfa51f1aa44ae3592d49c3232795d21d3fae4 /app/workers/pages_worker.rb | |
parent | c4c8ca04052aaf7d37c2335066381b536df68427 (diff) | |
download | gitlab-ce-5f7257c27dace1dcb9d3eb4732caf68f061a8d68.tar.gz |
Initial work on GitLab Pages update
Diffstat (limited to 'app/workers/pages_worker.rb')
-rw-r--r-- | app/workers/pages_worker.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/workers/pages_worker.rb b/app/workers/pages_worker.rb index 8c99e8dbe76..4eeb9666bb0 100644 --- a/app/workers/pages_worker.rb +++ b/app/workers/pages_worker.rb @@ -9,7 +9,11 @@ class PagesWorker def deploy(build_id) build = Ci::Build.find_by(id: build_id) - Projects::UpdatePagesService.new(build.project, build).execute + result = Projects::UpdatePagesService.new(build.project, build).execute + if result[:status] == :success + result = Projects::UpdatePagesConfigurationService.new(build.project).execute + end + result end def remove(namespace_path, project_path) |