16 lines
304 B
Ruby
16 lines
304 B
Ruby
|
class UpdatePagesService
|
||
|
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(data[:build_id])
|
||
|
end
|
||
|
end
|