##References
##Create a Rake Command file at lib/tasks/scheduler.rake
desc "This task is called by the Heroku scheduler add-on"
task :method_name => :environment do
puts "starting method_name process"
#do something here
#do something here
#do something here
puts "ending method_name process"
end
##Command line for heroku repo:
heroku addons:add scheduler:standard
##Go to Heroku Scheduler App for the relevant app:
##Submit this command to the Scheduler App:
rake method_name