# File lib/rubyipmi/commands/basecommand.rb, line 40 def locate_command(commandname) location = `which #{commandname}`.strip if not $?.success? logger.error("#{commandname} command not found, is #{commandname} installed?") if logger raise "#{commandname} command not found, is #{commandname} installed?" end location end