<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>README</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,3 +1,5 @@
+http://plugins.ardes.com &gt; nested_has_many_through
+
 = nested_has_many_through
 
 A fantastic patch/plugin has been floating around for a while:</diff>
      <filename>README.rdoc</filename>
    </modified>
    <modified>
      <diff>@@ -6,11 +6,31 @@ require 'spec/rake/spectask'
 require 'spec/rake/verify_rcov'
 require 'rake/rdoctask'
 
-plugin_name = File.basename(File.dirname(__FILE__))
+plugin_name = 'nested_has_many_through'
 
 task :default =&gt; :spec
 
-task :cruise =&gt; &quot;garlic:all&quot;
+task :cruise do
+  # run the garlic task, capture the output, if succesful make the docs and copy them to ardes
+  begin
+    sh &quot;rake garlic:all &gt; garlic_report.txt&quot;
+    
+    # send abridged rpeort
+    report = File.read('garlic_report.txt').sub(/^.*?==========/m, '==========')
+    report = &quot;garlic report for #{plugin_name}\n#{`git log -n 1 --pretty=oneline --no-color`}\n&quot; + report
+    File.open('garlic_report.txt', 'w+') {|f| f &lt;&lt; report }
+    sh &quot;scp -i ~/.ssh/ardes garlic_report.txt ardes@ardes.com:~/subdomains/plugins/httpdocs/doc/#{plugin_name}_garlic_report.txt&quot;
+
+    # build doc and send that
+    cd &quot;garlic/work/edge/vendor/plugins/#{plugin_name}&quot; do
+      sh &quot;rake doc:all&quot;
+      sh &quot;scp -i ~/.ssh/ardes -r doc ardes@ardes.com:~/subdomains/plugins/httpdocs/doc/#{plugin_name}&quot;
+    end
+    
+  ensure
+    puts File.read('garlic_report.txt')
+  end
+end
 
 desc &quot;Run the specs for #{plugin_name}&quot;
 Spec::Rake::SpecTask.new(:spec) do |t|</diff>
      <filename>Rakefile</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>c7ba2df176ed7f52f69ebce3168a6244f574aecb</id>
    </parent>
  </parents>
  <author>
    <name>Ian White</name>
    <email>ian.w.white@gmail.com</email>
  </author>
  <url>http://github.com/ianwhite/nested_has_many_through/commit/9dfeb76361f214b37df6f9e86abededc2f420829</url>
  <id>9dfeb76361f214b37df6f9e86abededc2f420829</id>
  <committed-date>2008-09-24T15:17:07-07:00</committed-date>
  <authored-date>2008-09-24T15:17:07-07:00</authored-date>
  <message>Updated README to point at plugins.ardes.com (where Rdoc is hosted) and set CI to push rdoc and garlic report</message>
  <tree>eda7295b24af5d04950e0e0eeaf38b9da0f15d12</tree>
  <committer>
    <name>Ian White</name>
    <email>ian.w.white@gmail.com</email>
  </committer>
</commit>
