Capistrano tasks for Magento

Custom tasks for Capistrano that I am using to help manage a Magento website.

Save this as mage.cap and put it under lib/capistrano/tasks/. Then in your Capfile add the following to load your custom tasks.

Now you can reindex the site, clear caches, put site into maintenance mode.