Sha256: a7932f5c3a8894194a805e44e02c8ce128217310516d90a5629280e56663a53c

Contents?: true

Size: 447 Bytes

Versions: 8

Compression:

Stored size: 447 Bytes

Contents

desc "Send notify emails to users submited their email to underconstruction page"
namespace :under_construction do
  task :send_mails => :environment do
    if File.exist? Rails.root + "db/under_construction_mails.txt"
      UnderConstructionEmailStorage.emails.each do |email|
        NotifyUnderConstructionSubmittedMails.under_construction_notify(email.chomp).deliver
      end
    else
      puts "There's no email submitted"
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
under_construction-0.2.2 lib/tasks/under_cunstruction_tasks.rake
under_construction-0.2.1 lib/tasks/under_cunstruction_tasks.rake
under_construction-0.1.4 lib/tasks/under_cunstruction_tasks.rake
under_construction-0.1.3 lib/tasks/under_cunstruction_tasks.rake
under_construction-0.1.2 lib/tasks/under_cunstruction_tasks.rake
under_construction-0.1.1 lib/tasks/under_cunstruction_tasks.rake
under_construction-0.1.0 lib/tasks/under_cunstruction_tasks.rake
under_construction-0.0.1 lib/tasks/under_cunstruction_tasks.rake