Skip to content

Capistrano 3 Deployment email notification with commit messages based release notes. Mailer supports markdown templates.

License

Notifications You must be signed in to change notification settings

robpe/capistrano-mailnote

Repository files navigation

capistrano-mailnote

Capistrano Deployment email notification with commit messages based release notes. Mailer supports markdown templates.

Installation

gem install capistrano-mailnote

or Gemfile:

gem 'capistrano-mailnote'

delpoy.rb configuration

Add following lines to your deployment config file:

# Mailer configuration for gmail/google apps 
#
set :mailnote_method, :smtp # or use :sendmail
set :mailnote_smtp, {
  address:    'smtp.gmail.com',
  port:       587,
  domain:     'subscribeasy.com',
  user_name:  fetch(:google_username),
  password:   fetch(:google_password),
  authentication: 'plain',
  enable_starttls_auto: true
}

set :mailnote_to,       '[email protected]'
set :mailnote_from,     '"Capistrano Deployment" <[email protected]>'
set :mailnote_subject,  Proc.new {
  "#{fetch(:application).capitalize}: [DEPLOY][#{fetch(:stage).upcase}][#{fetch(:repo_url)}]"
}

Customized views

You can override default views by adding following line:

Capistrano::Mailnote::Mailer.prepend_view_path '/path/to/your/views'

This gem supports markdown templates (https://github.com/plataformatec/markerb). Look for default mailer view in views/capistrano/mailnote/mailer/note.markerb.

About

Capistrano 3 Deployment email notification with commit messages based release notes. Mailer supports markdown templates.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages