<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -26,4 +26,19 @@ namespace :app do
   task :update_milestones =&gt; :setup do
     Burndown::Milestone.sync_with_lighthouse
   end
+end
+
+task :environment do
+  require &quot;lib/burndown&quot;
+  Burndown.new(File.dirname(__FILE__) + &quot;/config/config.yml&quot;)
+end
+
+task :cron =&gt; :environment do
+  if Time.now.hour == 23
+    puts &quot;Updating milestones...&quot;
+    Burndown::Milestone.sync_with_lighthouse
+    puts &quot;done.&quot;
+  else
+    puts &quot;Not executing for another #{23 - Time.now.hour} hours&quot;
+  end
 end
\ No newline at end of file</diff>
      <filename>Rakefile</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>lib/tasks/cron.rake</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>6747f02372f9dfc336249d845defd5df6d3c0e35</id>
    </parent>
  </parents>
  <author>
    <name>Kyle Neath</name>
    <email>kneath@gmail.com</email>
  </author>
  <url>http://github.com/kneath/lighthouse_burndown/commit/e223bd666978fcb38ebfc14182f7ecad8caee5a8</url>
  <id>e223bd666978fcb38ebfc14182f7ecad8caee5a8</id>
  <committed-date>2009-05-04T03:59:13-07:00</committed-date>
  <authored-date>2009-05-04T03:59:13-07:00</authored-date>
  <message>Gah, I'm dumb and didn't read how Heroku crons work</message>
  <tree>32e3c5594af7d1aa424b3f192c23eb4dd1744e5c</tree>
  <committer>
    <name>Kyle Neath</name>
    <email>kneath@gmail.com</email>
  </committer>
</commit>
