Module: Which
- Defined in:
- lib/pipe2me/which.rb
Constant Summary collapse
- DAEMON =
which!(:daemon)
- AUTOSSH =
which!(:autossh)
- MONIT =
which!(:monit)
Class Method Summary collapse
Class Method Details
.which!(cmd) ⇒ Object
2 3 4 5 6 |
# File 'lib/pipe2me/which.rb', line 2 def self.which!(cmd) path = `which #{cmd}`.chomp raise "Cannot find #{cmd} in your $PATH. Is it installed?" if path == "" path end |