# File lib/backup/cli/helpers.rb, line 39 def utility(name) path = UTILITY[name] || %x[which #{name} 2>/dev/null].chomp if path.empty? raise Errors::CLI::UtilityNotFoundError, "Path to '\#{ name }' could not be found.\nMake sure the specified utility is installed\nand available in your system's $PATH.\nIf this is a database utility, you may need to specify the full path\nusing the Database's '<utility_name>_utility' configuration setting.\n" end UTILITY[name] = path end