Merge pull request #47 from minhajuddin/master

A little convention over configuration love.
This commit is contained in:
David Dollar
2011-08-22 14:23:43 -07:00
2 changed files with 18 additions and 0 deletions
+2
View File
@@ -26,6 +26,8 @@ private ######################################################################
def export_template(exporter, file, template_root)
if template_root && File.exist?(file_path = File.join(template_root, file))
File.read(file_path)
elsif File.exist?(file_path = File.join("~/.foreman/templates", file))
File.read(file_path)
else
File.read(File.expand_path("../../../../data/export/#{exporter}/#{file}", __FILE__))
end