Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Wojciech Mach authored and grzegorzkazulak committed May 28, 2010
1 parent 0efa6cb commit ba9e1bd
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Expand Up @@ -5,7 +5,7 @@ require 'spec/rake/spectask'
require 'date'
$LOAD_PATH.unshift 'lib'
require 'rock-queue/tasks'

GEM = "rock-queue"
GEM_VERSION = "0.2.0"
AUTHOR = "Grzegorz Kazulak"
Expand Down
4 changes: 2 additions & 2 deletions lib/rock-queue.rb
Expand Up @@ -47,7 +47,7 @@ def adapter
if @adapter
@adapter
else
raise RuntimeError, "RockQueue is not connectet. Use setup"
raise RuntimeError, "RockQueue is not connected. Use setup"
end
end

Expand Down Expand Up @@ -81,6 +81,6 @@ def register_worker(worker)

# Calling adapter method
def method_missing(sym, *args, &block)
@adapter.send sym, *args, &block
adapter.send sym, *args, &block
end
end
2 changes: 1 addition & 1 deletion lib/rock-queue/tasks.rb
Expand Up @@ -9,7 +9,7 @@
file_path = "#{RAILS_ROOT}/tmp/pids/rock-queue.pid"

task :work do
worker = RockQueue::Worker.new(ENV['QUEUE'])
worker = RockQueue::Worker.new(ENV['QUEUE'].split(/,/))
worker.verbose = ENV['VERBOSE']
RockQueue.logger.info "=> Rock-queue worker initialized (#{worker})"
pid = fork do
Expand Down
4 changes: 4 additions & 0 deletions workers.rake
@@ -0,0 +1,4 @@
require 'rubygems'

require 'test'
require 'resque/tasks'

0 comments on commit ba9e1bd

Please sign in to comment.