From fcf827d1358723dc82e908971ce9d52083360cd8 Mon Sep 17 00:00:00 2001 From: Adrian Short Date: Fri, 22 Jun 2012 17:30:23 +0100 Subject: [PATCH] New task to fetch all feeds --- lib/tasks/scheduler.rake | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 lib/tasks/scheduler.rake diff --git a/lib/tasks/scheduler.rake b/lib/tasks/scheduler.rake new file mode 100644 index 0000000..99d6daf --- /dev/null +++ b/lib/tasks/scheduler.rake @@ -0,0 +1,8 @@ +desc "This task is called by the Heroku scheduler add-on" + +task :get_all_feeds => :environment do + puts "Getting all feeds..." + Feed.get_all + puts "done." +end +