bmuller/toquen — pull request #2 by vacay (2014-11-08 14:49:15+00:00)
Title: fix for capistrano stages with useless servers

Instances that are not running get inserted into stages even though they are not accessible, no public dns/ip, resulting in errors on deploy. Simple fix to filter for running instances only aws.describe_instances method.

My use case is with background workers. I have 6 worker instances with the "worker" role and at any given moment not all of them may be running. I would still like to deploy to running instances without manually updating the "worker" stage to remove empty servers.