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:
parent
f90ca9cd12
commit
c6f48f55fc
1 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue