Skip to content
This repository has been archived by the owner on Jun 29, 2019. It is now read-only.

Commit

Permalink
run the specific commands with arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
lloydpick committed Aug 17, 2011
1 parent cce5692 commit 82b29ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/resque_utils/capistrano.rb
Expand Up @@ -22,7 +22,7 @@
task :requeue_specific do
if exists?(:exception)
set :resque_pre, "cd #{current_path} && RAILS_ENV=#{environment} bundle exec rails runner"
run "#{resque_pre} \"ResqueUtils::requeue_all('#{exception}')\""
run "#{resque_pre} \"ResqueUtils::requeue_specific('#{exception}')\""
else
raise ArgumentError, "No exception was specified, use '--set exception=SomeErrorHere'"
end
Expand All @@ -32,7 +32,7 @@
task :remove_specific do
if exists?(:exception)
set :resque_pre, "cd #{current_path} && RAILS_ENV=#{environment} bundle exec rails runner"
run "#{resque_pre} \"ResqueUtils::remove_all('#{exception}')\""
run "#{resque_pre} \"ResqueUtils::remove_specific('#{exception}')\""
else
raise ArgumentError, "No exception was specified, use '--set exception=SomeErrorHere'"
end
Expand Down

0 comments on commit 82b29ca

Please sign in to comment.