mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-26 16:36:21 +00:00
Merge branch 'informative-deploys' into panel.sutty.nl
This commit is contained in:
commit
8c34008f35
1 changed files with 6 additions and 3 deletions
|
@ -69,10 +69,13 @@ class DeployJob < ApplicationJob
|
||||||
|
|
||||||
def deploy_others
|
def deploy_others
|
||||||
@site.deploys.where.not(type: 'DeployLocal').find_each do |d|
|
@site.deploys.where.not(type: 'DeployLocal').find_each do |d|
|
||||||
|
status = d.deploy(output: @output)
|
||||||
|
build_stat = d.build_stats.last
|
||||||
|
|
||||||
@deployed[d.type.underscore.to_sym] = {
|
@deployed[d.type.underscore.to_sym] = {
|
||||||
status: d.deploy(output: @output),
|
status: status,
|
||||||
seconds: d.build_stats.last.seconds,
|
seconds: build_stat.try(:seconds) || 0,
|
||||||
size: d.build_stats.last.size,
|
size: build_stat.try(:size) || 0,
|
||||||
url: d.url
|
url: d.url
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue