On Fri, 2008-05-16 at 14:54 -0600, Jamis Buck wrote:
> Note that a task is not executed once per matching server, it is  
> executed once, for all matching servers. So, depending on what you need:
> 
> 1. You simply want the host name to appear somewhere in a command  
> you're running in the current task:
> 
>    run "echo server is $CAPISTRANO:HOST$"
> 
> The $CAPISTRANO:HOST$ text gets replaced with the actual hostname  
> immediately before the command is executed on each server.

Perfect!  I was reading through command.rb but was just looking in
open_channels and glazed right over that call to replace_placeholders.
Thanks much!

Yours,

Tom



--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---

Reply via email to