>
I came up with this snippet which runs on the server:

--- cut ---

after :deploy, "custom:send_notifications"

set :admin_mail, "[EMAIL PROTECTED]"

namespace :custom do
   desc "send a notification to admin"
   task :send_notifications, :except => { :no_release => true } do
     run "echo \"To: #{admin_mail}\" > #{current_path}/mail.txt"
     run "echo \"Subject: Capistrano Deployment\" >> #{current_path}/ 
mail.txt"
     run "echo \"deployed #{application} on `uname -a`\" >> # 
{current_path}/mail.txt"
     run "/opt/csw/sbin/sendmail -i -t < #{current_path}/mail.txt"
     run "rm #{current_path}/mail.txt"
   end
end

--- cut ---

could probably be improved :)

cu jc


--
Jens-Christian Fischer - InVisible GmbH
Tel: +41 79 691 05 48
http://www.invisible.ch, http://blog.invisible.ch

--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---

Reply via email to