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

Version Path
effective_email_templates-1.9.0 lib/tasks/effective_email_templates_tasks.rake
effective_email_templates-1.8.0 lib/tasks/effective_email_templates_tasks.rake
effective_email_templates-1.7.0 lib/tasks/effective_email_templates_tasks.rake
effective_email_templates-1.6.0 lib/tasks/effective_email_templates_tasks.rake
effective_email_templates-1.5.1 lib/tasks/effective_email_templates_tasks.rake
effective_email_templates-1.5.0 lib/tasks/effective_email_templates_tasks.rake
effective_email_templates-1.4.1 lib/tasks/effective_email_templates_tasks.rake
effective_email_templates-1.4.0 lib/tasks/effective_email_templates_tasks.rake
effective_email_templates-1.3.0 lib/tasks/effective_email_templates_tasks.rake
effective_email_templates-1.2.3 lib/tasks/effective_email_templates_tasks.rake
effective_email_templates-1.2.2 lib/tasks/effective_email_templates_tasks.rake
effective_email_templates-1.2.1 lib/tasks/effective_email_templates_tasks.rake
effective_email_templates-1.2.0 lib/tasks/effective_email_templates_tasks.rake
effective_email_templates-1.1.4 lib/tasks/effective_email_templates_tasks.rake
effective_email_templates-1.1.3 lib/tasks/effective_email_templates_tasks.rake
effective_email_templates-1.1.2 lib/tasks/effective_email_templates_tasks.rake
effective_email_templates-1.1.1 lib/tasks/effective_email_templates_tasks.rake
effective_email_templates-1.1.0 lib/tasks/effective_email_templates_tasks.rake
effective_email_templates-1.0.13 lib/tasks/effective_email_templates_tasks.rake
effective_email_templates-1.0.12 lib/tasks/effective_email_templates_tasks.rake