Sha256: 0b0833bff1d044d39366c7f863f1de8a3400fed55ef55170f486fae2c99b7011
Contents?: true
Size: 728 Bytes
Versions: 10
Compression:
Stored size: 728 Bytes
Contents
require 'rubygems' unless defined?(Rubygems) require 'capistrano' unless defined?(Capistrano) unless Capistrano::Configuration.respond_to?(:instance) abort "capistrano/mailer requires Capistrano 2" end require 'action_mailer' unless defined?(ActionMailer) require 'cap_mailer' unless defined?(CapMailer) # ActionMailer configuration in the rails app require 'config/cap_mailer_settings' module Capistrano class Configuration module CapistranoMailer def send_notification_email(cap_vars, extra = {}, data = {}) CapMailer.deliver_notification_email(cap_vars, extra, data) end end include CapistranoMailer end end Capistrano.plugin :mailer, Capistrano::Configuration::CapistranoMailer
Version data entries
10 entries across 10 versions & 2 rubygems