瀏覽代碼

New task to fetch all feeds

master
Adrian Short 12 年之前
父節點
當前提交
fcf827d135
共有 1 個檔案被更改,包括 8 行新增0 行删除
  1. +8
    -0
      lib/tasks/scheduler.rake

+ 8
- 0
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


Loading…
取消
儲存