<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>config/schedule.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -48,8 +48,14 @@ namespace :deploy do
   task :assets do
     system &quot;rsync -vr --exclude='.DS_Store' public/assets #{user}@#{application}:/var/www/apps/railscasts.com/shared/&quot;
   end
+  
+  desc &quot;Update the crontab file&quot;
+  task :update_crontab, :roles =&gt; :db do
+    run &quot;cd #{release_path} &amp;&amp; whenever --update-crontab #{application}&quot;
+  end
 end
 
 after &quot;deploy&quot;, &quot;deploy:cleanup&quot; # keeps only last 5 releases
 after &quot;deploy:setup&quot;, &quot;deploy:setup_shared&quot;
 after &quot;deploy:update_code&quot;, &quot;deploy:symlink_extras&quot;
+after &quot;deploy:symlink&quot;, &quot;deploy:update_crontab&quot;</diff>
      <filename>config/deploy.rb</filename>
    </modified>
    <modified>
      <diff>@@ -70,4 +70,5 @@ Rails::Initializer.run do |config|
   config.gem 'ryanb-acts-as-list', :lib =&gt; 'acts_as_list', :source =&gt; 'http://gems.github.com'
   config.gem 'mislav-will_paginate', :lib =&gt; 'will_paginate', :source =&gt; 'http://gems.github.com'
   config.gem 'ryanb-thinking-sphinx', :lib =&gt; 'thinking_sphinx', :source =&gt; 'http://gems.github.com'
+  config.gem 'javan-whenever', :lib =&gt; false, :source =&gt; 'http://gems.github.com'
 end</diff>
      <filename>config/environment.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>c9d6386feb15f9fea9129047d540a8de7b8063f4</id>
    </parent>
  </parents>
  <author>
    <name>Ryan Bates</name>
    <email>ryan@railscasts.com</email>
  </author>
  <url>http://github.com/ryanb/railscasts/commit/6a47c0e3a32ba916bf9494e773feb18545ea2df1</url>
  <id>6a47c0e3a32ba916bf9494e773feb18545ea2df1</id>
  <committed-date>2009-05-31T16:11:43-07:00</committed-date>
  <authored-date>2009-05-31T16:11:43-07:00</authored-date>
  <message>using 'whenever' to manage cron jobs</message>
  <tree>9ce66b1b1c928ff4bf38b59d04558e8ea6013a77</tree>
  <committer>
    <name>Ryan Bates</name>
    <email>ryan@railscasts.com</email>
  </committer>
</commit>
