lib/kapify/base.rb in kapify-0.0.7 vs lib/kapify/base.rb in kapify-0.0.8
- old
+ new
@@ -26,10 +26,10 @@
end
set_default(:templates_path, "#{Dir.pwd}/config/deploy/templates")
def template(from, to)
- erb = File.read(File.expand_path("#{templates_path}/#{from}", __FILE__))
+ erb = File.read(File.expand_path("#{Dir.pwd}/#{templates_path}/#{from}"))
put ERB.new(erb).result(binding), to
end
def kapify_template(generator, template_name, target)
config_file = "#{templates_path}/#{template_name}"