Skip to content

Commit

Permalink
rename fetch -> fetcher
Browse files Browse the repository at this point in the history
  • Loading branch information
j-manu committed May 7, 2012
1 parent 52602cc commit 63f624f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Expand Up @@ -2,6 +2,6 @@ $: << File.dirname(__FILE__)
$: << File.join(File.dirname(__FILE__), 'app')
require 'bundler'
Bundler.require(:default, :resque)
require 'fetch'
require 'fetcher'
require 'resque/tasks'
require 'lib/tasks/worker'
2 changes: 1 addition & 1 deletion app/book.rb
Expand Up @@ -77,7 +77,7 @@ def fetch_prices
# insert into queue instead of using Resque.enqueue
redis.sadd 'isbn:queues', 'fetch'
Store::STORES.keys.each do |store_name|
redis.rpush('isbn:queue:fetch', {class: 'Fetch', args: [isbn.to_s, store_name.to_s]}.to_json)
redis.rpush('isbn:queue:fetch', {class: 'Fetcher', args: [isbn.to_s, store_name.to_s]}.to_json)
end
end

Expand Down
2 changes: 1 addition & 1 deletion app/fetch.rb → app/fetcher.rb
@@ -1,7 +1,7 @@
require 'book'
require 'store'

class Fetch
class Fetcher
@queue = :fetch

def self.perform(isbn, store_name)
Expand Down

0 comments on commit 63f624f

Please sign in to comment.