blob: 446eeb34d3b3f903b1ad52cd808957e53a7bda76 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
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
|