Execute shell commands and get the resulting output, but without the security problems of Ruby’s backtick operator.
Envato, Ian Leitch, Pete Yandell
gem "safe_shell", "~> 1.0.1"