gitlab-org--gitlab-foss/app/services/pages_service.rb

16 lines
307 B
Ruby
Raw Normal View History

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'
2015-12-18 07:07:53 -05:00
PagesWorker.perform_async(:deploy, data[:build_id])
end
end