Sha256: fcb1b98773a29146ebc5ad1690a3bab75a833a2485b86d28bdb25a6c3214b9a1
Contents?: true
Size: 733 Bytes
Versions: 32
Compression:
Stored size: 733 Bytes
Contents
# rake effective_email_templates:import # rake effective_email_templates:overwrite namespace :effective_email_templates do desc 'Import email templates from the filesystem to the database. Skips existing.' task import: :environment do require 'effective_email_templates/importer' EffectiveEmailTemplates::Importer.import() end desc 'Overwrite email templates from the filesystem to the database. Overwrites existing.' task overwrite: :environment do puts 'WARNING: this task will overwrite existing email templates. Proceed? (y/n)' (puts 'Aborted'; exit) unless STDIN.gets.chomp.downcase == 'y' require 'effective_email_templates/importer' EffectiveEmailTemplates::Importer.overwrite() end end
Version data entries
32 entries across 32 versions & 1 rubygems