Sha256: 01d7e5da6db1c21874ec43f7abfa9dde6b22b1102c66e82c68de5f678f15f7dd

Contents?: true

Size: 914 Bytes

Versions: 23

Compression:

Stored size: 914 Bytes

Contents

insert_into_file "#{@project_path}/config/environments/development.rb",
                 after: "config.cache_classes = false\n" do
  <<EOF
  # Setting to send development emails to mailcatcher (install mailcatcher gem) for easier testing
  config.action_mailer.default_url_options = { :host => 'localhost:3000'}
  config.action_mailer.delivery_method = :smtp
  config.action_mailer.smtp_settings = {:address => "127.0.0.1", :port => 1025, domain: 'localhost'}
EOF
end

insert_into_file "#{@project_path}/config/environments/production.rb",
                 after: "config.cache_classes = true\n" do
  <<EOF
  config.action_mailer.default_url_options = { :host => "#{Config.settings['server']['name']}"}
  config.action_mailer.delivery_method = :smtp
  config.action_mailer.smtp_settings = {
      :address => "127.0.0.1",
      :port    => 25,
      :domain  => "#{Config.settings['server']['name']}"
  }
EOF
end

Version data entries

23 entries across 23 versions & 2 rubygems

Version Path
r5-0.5.0.0 lib/r5/recipes/mail_settings.rb
r5-0.4.0.5 lib/r5/recipes/mail_settings.rb
r5-0.4.0.4 lib/r5/recipes/mail_settings.rb
r5-0.4.0.2 lib/r5/recipes/mail_settings.rb
r5-0.4.0.1 lib/r5/recipes/mail_settings.rb
r5-0.4.0.0 lib/r5/recipes/mail_settings.rb
r5-0.3.0.0 lib/r5/recipes/mail_settings.rb
r5-0.2.6.2 lib/r5/recipes/mail_settings.rb
r5-0.2.6.1 lib/r5/recipes/mail_settings.rb
r5-0.2.6.0 lib/r5/recipes/mail_settings.rb
r5-0.2.5.2 lib/r5/recipes/mail_settings.rb
r5-0.2.5 lib/r5/recipes/mail_settings.rb
r5-0.2.4 lib/r5/recipes/mail_settings.rb
r5-0.2.3 lib/r5/recipes/mail_settings.rb
r5-0.2.0 lib/r5/recipes/mail_settings.rb
r5-0.1.9 lib/r5/recipes/mail_settings.rb
r5-0.1.8 lib/r5/recipes/mail_settings.rb
r5-0.1.7 lib/r5/recipes/mail_settings.rb
r5-0.1.6 lib/r5/recipes/mail_settings.rb
r5-0.1.5 lib/r5/recipes/mail_settings.rb