# File firewall/lib/symbiosis/firewall/template.rb, line 75 def self.find(files, directories = @directories) path = nil files = [ files ] unless files.is_a?(Array) files.compact.each do |file| # # Search all the template directories... # directories.each do |dir| path = "#{dir}/#{file}" break if File.exists?(path) path = nil end break unless path.nil? end # uh-oh! not found it. raise ArgumentError, "Could not find any templates called #{files.join(" or ")}." unless path and File.exists?(path) return path end