namespace :feeds do

  desc 'update feeds from GitHub'
  task update_feeds: :environment do
    require 'feedshub/feeds/git_feeds_handler'
    GitFeedsHandler.update_github_feeds
  end

  task :whenverize do
    env = ARGV.last
    exec("cd #{Feedshub::Engine.root} && whenever -i -s 'path=#{Rails.root}' -r #{env}")
  end

end
namespace :feeds do

  desc 'update feeds from GitHub'
  task update_feeds: :environment do
    require 'feedshub/feeds/git_feeds_handler'
    GitFeedsHandler.update_github_feeds
  end

  desc 'add cron task to update feeds'
  task whenverize: :environment do
    env = ARGV.last
    exec("cd #{Feedshub::Engine.root} && whenever -i -s 'path=#{Rails.root}' -r #{env}")
  end

end
Add task support for rails 3; CR: DF
Add task support for rails 3; CR: DF