Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure notifications #11

Open
artem-mindrov opened this issue May 5, 2012 · 1 comment
Open

Failure notifications #11

artem-mindrov opened this issue May 5, 2012 · 1 comment

Comments

@artem-mindrov
Copy link
Collaborator

I'm wondering if there's a way to make Mailer use different templates on success and failure. One possible way I see (though I didn't try it) to do this is:

  • create separate hooks for after:deploy and after:rollback
  • make them call notification_email with a config instance specifying the appropriate :template_path for each event

Even if this works, I think it's a bit cumbersome for such a routine case. Any chance to have failure notifications integrated into the gem?

@pboling
Copy link
Owner

pboling commented May 10, 2012

Excellent question. I haven't had a chance to do any work on Capistrano Mailer for a while. I hope to soon, but will certainly be grateful for patches/pull requests if anyone else has time to look into it.

pboling added a commit that referenced this issue Jun 11, 2012
Fix for issue #11: failure notifications w/ separately configurable templates and more...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants