Mike, Presumably, you are doing this with the capistrano-ext multistage, not homegrown - and you are using seperate deploy.rb files, the standard way to do this is simply not to define the before/after() call in the stage environments that don't use the spare server.
Alternately you might be able to use find_servers() (see the API docs) - to conditionally call the after/before() setup line... but really, only chain the task in the environments that require it. (and why not provision your spare server, but take it out of the load balancer config using some other process...) -- Lee Hambley Twitter: @leehambley | @capistranorb -- * You received this message because you are subscribed to the Google Groups "Capistrano" group. * To post to this group, send email to [email protected] * To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/capistrano?hl=en
