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
very_best_in_place-2.0.3 test_app/lib/tasks/cron.rake
crest_in_place-2.2.0 test_app/lib/tasks/cron.rake
best_in_place-2.1.0 test_app/lib/tasks/cron.rake
best_in_place-2.0.3 test_app/lib/tasks/cron.rake
best_in_place-2.0.2 test_app/lib/tasks/cron.rake
best_in_place-2.0.1 test_app/lib/tasks/cron.rake
best_in_place-2.0.0 test_app/lib/tasks/cron.rake
best_in_place-1.1.3 test_app/lib/tasks/cron.rake
best_in_place-1.1.2 test_app/lib/tasks/cron.rake
best_in_place-1.1.1 test_app/lib/tasks/cron.rake
best_in_place-1.1.0 test_app/lib/tasks/cron.rake
best_in_place-0.2.3 test_app/lib/tasks/cron.rake
best_in_place-1.0.6 test_app/lib/tasks/cron.rake
best_in_place-1.0.5 test_app/lib/tasks/cron.rake
best_in_place-1.0.4 test_app/lib/tasks/cron.rake
best_in_place-1.0.3 test_app/lib/tasks/cron.rake
best_in_place-0.2.2 test_app/lib/tasks/cron.rake
best_in_place-1.0.2 test_app/lib/tasks/cron.rake
best_in_place-0.2.1 test_app/lib/tasks/cron.rake
best_in_place-1.0.1 test_app/lib/tasks/cron.rake