Sha256: d2376c2dd779305babb1f7a3863a213bfcc81018fec0f62dc7fdfe38daed3cce

Contents?: true

Size: 195 Bytes

Versions: 30

Compression:

Stored size: 195 Bytes

Contents

desc "This task is called by the Heroku cron add-on"
task :cron => :environment do
 if Time.now.hour == 0 # run at midnight
   Rake::Task["db:setup"].execute
   puts "db:setup performed"
 end
end

Version data entries

30 entries across 30 versions & 3 rubygems

Version Path
best_in_place-0.2.0 test_app/lib/tasks/cron.rake
best_in_place-1.0.0 test_app/lib/tasks/cron.rake
best_in_place-0.1.9 test_app/lib/tasks/cron.rake
best_in_place-0.1.8 test_app/lib/tasks/cron.rake
best_in_place-0.1.7 test_app/lib/tasks/cron.rake
best_in_place-0.1.6 test_app/lib/tasks/cron.rake
best_in_place-0.1.5 test_app/lib/tasks/cron.rake
best_in_place-0.1.4 test_app/lib/tasks/cron.rake
best_in_place-0.1.3 test_app/lib/tasks/cron.rake
best_in_place-0.1.2 test_app/lib/tasks/cron.rake