<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -7,7 +7,7 @@ module Necktie
   # Template.
   #
   # Loosely based on: http://gist.github.com/215270
-  class ERB &lt; Rake::FileTask
+  class ErbTask &lt; Rake::FileTask
     
     # Path to the input ERB template. This value will default to the value of
     # &quot;#{output}.erb&quot;
@@ -23,14 +23,14 @@ module Necktie
     def execute(*args)
       super
       content = File.read(template)
-      result = ::ERB.new(content, nil, '&gt;').result(binding)
-      File.open(name, 'w') { |f| f.write(result) }
+      result = ERB.new(content, nil, '&gt;').result(binding)
+      write name, result
       puts &quot; * Created ERB output at: #{name}&quot; if application.options.trace
     end
  
     def self.define_task(args)
       task = super
-      if task.is_a?(Necktie::ERB)
+      if task.is_a?(Necktie::ErbTask)
         yield task if block_given?
         task.prerequisites &lt;&lt; file(task.template)
       end
@@ -62,5 +62,5 @@ end
 #     t.template = 'config/SomeFile.xml.erb' # Optional - will automatically look here...
 #   end
 def erb(args, &amp;block)
-  Necktie::ERB.define_task(args, &amp;block)
+  Necktie::ErbTask.define_task(args, &amp;block)
 end</diff>
      <filename>lib/necktie/erb.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>111de47350fae6ef067586ec3978b8a2ec320da3</id>
    </parent>
  </parents>
  <author>
    <name>Assaf Arkin</name>
    <email>assaf@labnotes.org</email>
  </author>
  <url>http://github.com/assaf/necktie/commit/23d1239102d5818018b306e12ebc1411585eebc2</url>
  <id>23d1239102d5818018b306e12ebc1411585eebc2</id>
  <committed-date>2009-11-06T12:21:44-08:00</committed-date>
  <authored-date>2009-11-06T12:21:44-08:00</authored-date>
  <message>ErbTask now properly named and using atomic write.</message>
  <tree>0aaa98352cf78bcf097f810342e9666680c74e17</tree>
  <committer>
    <name>Assaf Arkin</name>
    <email>assaf@labnotes.org</email>
  </committer>
</commit>
