5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-20 02:36:21 +00:00

feat: mostrar una tabla con el resumen en la consola

This commit is contained in:
f 2023-03-18 14:59:34 -03:00
parent fa04538669
commit 151aecc4d8

View file

@ -52,6 +52,16 @@ class DeployJob < ApplicationJob
urls: d.respond_to?(:urls) ? d.urls : [d.url].compact
}
end
return unless @output
puts (Terminal::Table.new do |t|
t << (%w[type] + @deployed.values.first.keys)
t.add_separator
@deployed.each do |type, row|
t << ([type.to_s] + row.values)
end
end)
rescue DeployTimedOutException => e
notify_exception e
ensure