Class | AutomateIt::ShellManager::WhichBase |
In: |
lib/automateit/shell_manager/which_base.rb
|
Parent: | AutomateIt::ShellManager::BaseDriver |
Provides abstract helper methods for other drivers implementing the which.
See ShellManager#which!
# File lib/automateit/shell_manager/which_base.rb, line 13 def which!(command) result = which(command) if result.nil? raise ArgumentError.new("command not found: #{command}") else true end end