5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-16 16:01:41 +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 f90ca9cd12
commit c6f48f55fc

View file

@ -54,6 +54,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