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

Version Path
pboling-capistrano_mailer-3.0.1 lib/capistrano/mailer.rb
pboling-capistrano_mailer-3.0.2 lib/capistrano/mailer.rb
pboling-capistrano_mailer-3.1.0 lib/capistrano/mailer.rb
capistrano_mailer-3.1.10 lib/capistrano/mailer.rb
capistrano_mailer-3.1.9 lib/capistrano/mailer.rb
capistrano_mailer-3.1.8 lib/capistrano/mailer.rb
capistrano_mailer-3.1.7 lib/capistrano/mailer.rb
capistrano_mailer-3.1.6 lib/capistrano/mailer.rb
capistrano_mailer-3.1.5 lib/capistrano/mailer.rb
capistrano_mailer-3.1.4 lib/capistrano/mailer.rb