Sha256: 7ee80033cf0ba3bbda93312455f0752d72f8e2da25dce796a343d81e2eca5dc0

Contents?: true

Size: 365 Bytes

Versions: 2

Compression:

Stored size: 365 Bytes

Contents

namespace :stackoverfeeds do

  desc 'Update feeds from Stackoverflow'
  task update_feeds: :environment do
    require 'stackoverfeeds/stackoverfeeds_handler'
    StackoverfeedsHandler.update_feeds
  end

  desc 'Add cron task to update feeds'
  task schedule: :environment do
    exec("whenever -i -r #{Rails.env} -f config/stackoverfeeds/schedule.rb")
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
stackoverfeeds-1.0.1 lib/tasks/stackoverfeeds_tasks.rake
stackoverfeeds-1.0.0 lib/tasks/stackoverfeeds_tasks.rake