```ruby
#
# Updates the crontab using wheneverize
#

after "deploy:symlink", "deploy:update_crontab"

namespace :deploy do
  desc "Update the crontab file"
  task :update_crontab, :roles => :db do
    run "source /usr/local/lib/rvm && cd #{current_path} && bundle exec whenever --update-crontab #{application}"
  end
end
```

Install to ec2 user crontab
user
```ruby
#
# Updates the crontab using wheneverize
#

after "deploy:symlink", "deploy:update_crontab"

namespace :deploy do
  desc "Update the crontab file"
  task :update_crontab, :roles => :db do
    run "cd #{current_path} && bundle exec whenever --update-crontab #{application}"
  end
end
```
assistant