Class: Utils::Shell
Class Method Summary collapse
Class Method Details
.binary_exists?(binary) ⇒ Boolean
9 10 11 |
# File 'lib/utils/shell.rb', line 9 def self.binary_exists?(binary) File.executable?(File.join(ENV.fetch('PATH', '').split(':'), binary)) end |