From 83736ac86d49d1cebb23b1f77b40126fed7fb477 Mon Sep 17 00:00:00 2001 From: "konstantin.grabar" Date: Mon, 4 Jun 2012 18:16:32 +0400 Subject: [PATCH] [refs #510] Rename recipe methods names to right variants --- lib/recipes/resque.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/recipes/resque.rb b/lib/recipes/resque.rb index c66623d96..439200e0a 100644 --- a/lib/recipes/resque.rb +++ b/lib/recipes/resque.rb @@ -18,7 +18,7 @@ Capistrano::Configuration.instance(:must_exist).load do fetch(:rails_env, false) ? "RAILS_ENV=#{fetch(:rails_env)}" : '' end - def start_workers + def stop_workers pids = Array.new Resque.workers.each do |worker| @@ -30,7 +30,7 @@ Capistrano::Configuration.instance(:must_exist).load do end end - def stop_workers + def start_workers run "cd #{fetch :release_path} && QUEUE=* bundle exec rake resque:work" end end