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