Created
March 13, 2015 20:01
-
-
Save postazure/0a9a6f3760900f8a629f to your computer and use it in GitHub Desktop.
test rake tasks blog example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# lib/tasks/restaurant.rake | |
require 'harvesters/yelp_harvester' | |
require 'harvesters/harvester_index' | |
namespace :restaurant do | |
desc "Pull yelp information from yelp api" | |
task get_yelp: :environment do | |
HarvesterIndex.yelp | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment