Sha256: ef84dee1828b77e8a3fbefaf9e792014d068f4e3d9f7b0ecfd963ff7a87634ef

Contents?: true

Size: 475 Bytes

Versions: 17

Compression:

Stored size: 475 Bytes

Contents

module MailEngine
  class CreateConfig < Rails::Generators::Base
    desc "Add mail template config file."
    source_root File.expand_path("../templates", __FILE__)

    # def generate_config
    #   case backend_type
    #   when "amazon"
    #   when "sendgrid"
    #   when "sendmail"
    #   when "smtp"
    #   else
    #   end
    # end

    def create_config_file
      template "mail_engine_config.yml", "config/mail_engine_config.yml"
    end
  end
end # MailEngine

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
mail_engine-0.1.15 lib/mail_engine/generators/create_config.rb
mail_engine-0.1.14 lib/mail_engine/generators/create_config.rb
mail_engine-0.1.13 lib/mail_engine/generators/create_config.rb
mail_engine-0.1.12 lib/mail_engine/generators/create_config.rb
mail_engine-0.1.11 lib/mail_engine/generators/create_config.rb
mail_engine-0.1.10 lib/mail_engine/generators/create_config.rb
mail_engine-0.1.9 lib/mail_engine/generators/create_config.rb
mail_engine-0.1.8 lib/mail_engine/generators/create_config.rb
mail_engine-0.1.7 lib/mail_engine/generators/create_config.rb
mail_engine-0.1.6 lib/mail_engine/generators/create_config.rb
mail_engine-0.1.5 lib/mail_engine/generators/create_config.rb
mail_engine-0.1.4 lib/mail_engine/generators/create_config.rb
mail_engine-0.1.3 lib/mail_engine/generators/create_config.rb
mail_engine-0.1.2 lib/mail_engine/generators/create_config.rb
mail_engine-0.1.1 lib/mail_engine/generators/create_config.rb
mail_engine-0.1.0 lib/mail_engine/generators/create_config.rb
mail_engine-0.0.1 lib/mail_engine/generators/create_config.rb