Module: Cybele::Helpers::Mailer

Included in:
AppBuilder
Defined in:
lib/cybele/helpers/mailer.rb

Instance Method Summary collapse

Instance Method Details

#configure_action_mailerObject



6
7
8
9
10
# File 'lib/cybele/helpers/mailer.rb', line 6

def configure_action_mailer
  action_mailer_host 'development'
  action_mailer_host 'staging'
  action_mailer_host 'production'
end

#configure_smtpObject



12
13
14
15
16
17
18
19
20
21
22
# File 'lib/cybele/helpers/mailer.rb', line 12

def configure_smtp
  configure_environment 'staging',
                        template_content('recipient_interceptor/recipient_interceptor_staging.rb.erb')
  %w[production staging development].each do |env|
    configure_environment env, template_content('mailer/smtp.rb.erb')
  end
  append_template_to_file 'config/settings.yml', 'mailer/mailer_settings.yml.erb'
  %w[.env.local .env.production .env.staging .env.sample].each do |env|
    append_template_to_file(env, 'mailer/.env.local.erb')
  end
end