Wow I just discovered Shellwords which is part of Ruby's standard lib. I don't understand how I've missed this all these years https://ruby-doc.org/stdlib-2.5.1/libdoc/shellwords/rdoc/Shellwords.html
tl;dr makes it easier to run shell commands via ruby. You could already do it but arrays and interpolation stuff had a habit of breaking. Not any more!