Sha256: 94f2fa1c7925e0b43a12407e79e05bda00bf37117b3230ef4813acf4aca56ca3

Contents?: true

Size: 763 Bytes

Versions: 5

Compression:

Stored size: 763 Bytes

Contents

module Pah
  module Templates
    class Mandrill < Pah::Template
      def call
        mandrill_config = <<MANDRILL

  # Mandrill config
  config.action_mailer.default_url_options = { host: ENV['CANONICAL_HOST'] }
  config.action_mailer.smtp_settings = {
    address:              'smtp.mandrillapp.com',
    port:                 '587',
    authentication:       :plain,
    user_name:            ENV['MANDRILL_USERNAME'],
    password:             ENV['MANDRILL_APIKEY'],
    domain:               'heroku.com'
  }
MANDRILL

        inject_into_file 'config/environments/production.rb', mandrill_config,  before: /^end/, verbose: false

        git add: 'config/environments/production.rb'
        git_commit 'Add Mandrill config.'
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pah-0.0.23 lib/pah/templates/mandrill.rb
pah-0.0.22 lib/pah/templates/mandrill.rb
pah-0.0.21 lib/pah/templates/mandrill.rb
pah-0.0.20 lib/pah/templates/mandrill.rb
pah-0.0.19 lib/pah/templates/mandrill.rb