blindsidenetworks / scalelite

Scalable load balancer for BigBlueButton.
GNU Affero General Public License v3.0
465 stars 249 forks source link

Prevent column line wrapping in output of rake status task #1054

Closed Ithanil closed 3 months ago

Ithanil commented 3 months ago

This PR prevent line wrapping within columns of the table outputted by the rake status task.

Description

The Tabulo gem used to produce the table in the rake status task uses per default the terminal width as maximum table width when calling .pack() on the table before printing it: https://github.com/matt-harvey/tabulo#max-table-width When the table content does not fit within this width, the gem will resort to line wrapping within columns to make the table fit. While this (very arguably) may be visually pleasing, it can unexpectedly break any kind of commands or scripts used on the output of rake status.

To prevent this behavior, .pack() is now called as follows: .pack(max_table_width: nil).

Fixed issues

https://github.com/blindsidenetworks/scalelite/issues/1020