debian-mirror-gitlab/app/services/pages_service.rb
2017-08-17 22:00:37 +05:30

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