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.4.2 lib/saucy/railties/tasks.rake
saucy-0.4.1 lib/saucy/railties/tasks.rake
saucy-0.3.4.1 lib/saucy/railties/tasks.rake
saucy-0.4.0 lib/saucy/railties/tasks.rake
saucy-0.3.4 lib/saucy/railties/tasks.rake
saucy-0.3.3 lib/saucy/railties/tasks.rake
saucy-0.3.2 lib/saucy/railties/tasks.rake
saucy-0.3.1 lib/saucy/railties/tasks.rake
saucy-0.3.0 lib/saucy/railties/tasks.rake
saucy-0.2.45 lib/saucy/railties/tasks.rake
saucy-0.2.44 lib/saucy/railties/tasks.rake
saucy-0.2.43 lib/saucy/railties/tasks.rake
saucy-0.2.42 lib/saucy/railties/tasks.rake
saucy-0.2.41 lib/saucy/railties/tasks.rake
saucy-0.2.40 lib/saucy/railties/tasks.rake
saucy-0.2.39 lib/saucy/railties/tasks.rake
saucy-0.2.38 lib/saucy/railties/tasks.rake