lib/kuzushi.rb in kuzushi-0.0.10 vs lib/kuzushi.rb in kuzushi-0.0.11
- old
+ new
@@ -159,10 +159,10 @@
def process_files(f)
fetch("/templates/#{f.template}") do |file|
task "setting up #{f.file}" do
@system = system
t = ERB.new File.read(file), 0, '<>'
- File.open(f.file,"w") { |f| f.write(t.result) }
+ File.open(f.file,"w") { |f| f.write(t.result(binding)) }
end
end
end
def process_users(user)