gitlab-org--gitlab-foss/app/services/pages_service.rb
2017-01-31 22:53:57 +00:00

15 lines
307 B
Ruby

class PagesService
attr_reader :data
def initialize(data)
@data = data
end
def execute
return unless Settings.pages.enabled
return unless data[:build_name] == 'pages'
return unless data[:build_status] == 'success'
PagesWorker.perform_async(:deploy, data[:build_id])
end
end