Yes, I'm happy to revert or otherwise undo it.

I was thinking having 210 lines of bash in a ruby file is a bit odd. I agree, it is one more thing to break. I added tests for that very reason. The initial implementation was "the simplest thing that would work" and wasn't worth extracting like this. In my mind, having other things use a similar pattern makes the cost of complexity a little more palatable.