Class: Utils::Shell

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/utils/shell.rb

Class Method Summary collapse

Class Method Details

.binary_exists?(binary) ⇒ Boolean

Returns:

  • (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