Sha256: 379e57732e3b07b0c757f7f449e00b25d0d440a12ffcf68b3502a274282996ed
Contents?: true
Size: 503 Bytes
Versions: 3
Compression:
Stored size: 503 Bytes
Contents
namespace :reparty do desc 'Generate the email to be sent' task :email, [:address] => :environment do |t,args| unless args.address puts "Error: An address is required." next end ReportMailer.daily(args.address).deliver end desc 'Generate a weekly email to be sent' task :weekly_email, [:address] => :environment do |t,args| unless args.address puts "Error: An address is required." next end ReportMailer.weekly(args.address).deliver end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
reparty-0.5.2 | lib/tasks/reparty.rake |
reparty-0.5.1 | lib/tasks/reparty.rake |
reparty-0.5.0 | lib/tasks/reparty.rake |