Sha256: a56742c31403313fc11a6ef7a34e2f6b487a06a701282706f35d00e8dfc5bcd1

Contents?: true

Size: 734 Bytes

Versions: 37

Compression:

Stored size: 734 Bytes

Contents

namespace :saucy do
  desc "Updates subscription status and delivers receipt/problem notices"
  task :update_subscriptions => :environment do
    Account.update_subscriptions!
  end

  desc "Deliver notifications for users that have signed up and aren't activated"
  task :ask_users_to_activate => :environment do
    Account.deliver_new_unactivated_notifications
  end

  desc "Deliver notifications to users with expiring trial accounts"
  task :deliver_expiring_trial_notifications => :environment do
    Account.deliver_expiring_trial_notifications
  end

  desc "Run all daily tasks"
  task :daily => [:update_subscriptions,
                  :ask_users_to_activate,
                  :deliver_expiring_trial_notifications]
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
saucy-0.7.3 lib/saucy/railties/tasks.rake
saucy-0.7.2 lib/saucy/railties/tasks.rake
saucy-0.7.1 lib/saucy/railties/tasks.rake
saucy-0.7.0 lib/saucy/railties/tasks.rake
saucy-0.6.1 lib/saucy/railties/tasks.rake
saucy-0.6.0 lib/saucy/railties/tasks.rake
saucy-0.5.5 lib/saucy/railties/tasks.rake
saucy-0.5.4 lib/saucy/railties/tasks.rake
saucy-0.5.3 lib/saucy/railties/tasks.rake
saucy-0.5.2 lib/saucy/railties/tasks.rake
saucy-0.5.1 lib/saucy/railties/tasks.rake
saucy-0.5.0 lib/saucy/railties/tasks.rake
saucy-0.4.10 lib/saucy/railties/tasks.rake
saucy-0.4.9 lib/saucy/railties/tasks.rake
saucy-0.4.8 lib/saucy/railties/tasks.rake
saucy-0.4.7 lib/saucy/railties/tasks.rake
saucy-0.4.6 lib/saucy/railties/tasks.rake
saucy-0.4.5 lib/saucy/railties/tasks.rake
saucy-0.4.4 lib/saucy/railties/tasks.rake
saucy-0.4.3 lib/saucy/railties/tasks.rake