summaryrefslogtreecommitdiff
path: root/app/workers/pages_worker.rb
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-02-09 18:06:55 +0100
committerJames Edwards-Jones <jedwardsjones@gitlab.com>2017-01-31 22:53:57 +0000
commit5f7257c27dace1dcb9d3eb4732caf68f061a8d68 (patch)
treea00cfa51f1aa44ae3592d49c3232795d21d3fae4 /app/workers/pages_worker.rb
parentc4c8ca04052aaf7d37c2335066381b536df68427 (diff)
downloadgitlab-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.rb6
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)