Permalink
Browse files

Fix cap workers bug

  • Loading branch information...
1 parent 6af5cd4 commit 08477478c18b1692fcd3c7f1474f3505de029241 @chewbranca chewbranca committed Jul 18, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 config/deploy/recipes/capistrano_application_god.rb
@@ -43,7 +43,7 @@
task :setup_application_god_primary, :roles => :app, :except => { :no_release => true } do
set :enable_god_for_app, true
- set(:enable_god_for_workers) { not roles[:workers].include?(find_servers_for_task(current_task)) }
+ set(:enable_god_for_workers) { not roles[:workers].include?(find_servers_for_task(current_task).first) }
location = fetch(:template_dir, "config/deploy/templates") + '/application.god.erb'
template = File.file?(location) ? File.read(location) : raise("File Not Found: #{location}")

0 comments on commit 0847747

Please sign in to comment.