Class: MailEngine::CreateConfig
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- MailEngine::CreateConfig
- Defined in:
- lib/mail_engine/generators/create_config.rb
Instance Method Summary collapse
-
#create_config_file ⇒ Object
def generate_config case backend_type when “amazon” when “sendgrid” when “sendmail” when “smtp” else end end.
Instance Method Details
#create_config_file ⇒ Object
def generate_config
case backend_type
when "amazon"
when "sendgrid"
when "sendmail"
when "smtp"
else
end
end
16 17 18 |
# File 'lib/mail_engine/generators/create_config.rb', line 16 def create_config_file template "mail_engine_config.yml", "config/mail_engine_config.yml" end |