mirror of
https://0xacab.org/sutty/sutty
synced 2025-01-19 16:53:38 +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
|
urls: d.respond_to?(:urls) ? d.urls : [d.url].compact
|
||||||
}
|
}
|
||||||
end
|
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
|
rescue DeployTimedOutException => e
|
||||||
notify_exception e
|
notify_exception e
|
||||||
ensure
|
ensure
|
||||||
|
|
Loading…
Reference in a new issue