require 'erb' def app_path "#{deploy_to}/#{application}" end def system_path "#{deploy_to}/system" end def media_root_path "#{deploy_to}/#{media_root}" end def render(template, binding) template = File.read("#{File.dirname(__FILE__)}/templates/#{template}.erb") result = ERB.new(template).result(binding) end