Skip to content

Instantly share code, notes, and snippets.

@arooni
Created May 12, 2011 06:55
Show Gist options
  • Save arooni/968065 to your computer and use it in GitHub Desktop.
Save arooni/968065 to your computer and use it in GitHub Desktop.
*** (Job{scraper} | Scraper | [5, 72]) failed: #<NameError: uninitialized constant Scraper>
### RAKEFILE
# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
require(File.join(File.dirname(__FILE__), 'config', 'boot'))
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
require 'tasks/rails'
require 'resque/tasks'
require 'lib/scraper.rb'
### END RAKEFILE
rails_root = ENV['RAILS_ROOT'] || File.dirname(__FILE__) + '/../..'
rails_env = ENV['RAILS_ENV'] || 'development'
resque_config = YAML.load_file(rails_root + '/config/resque.yml')
Resque.redis = resque_config[rails_env]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment