The best you can do is substitute the name of the host the command is
being executed on:

   "command_to_execute $CAPISTRANO:HOST$"

- Jamis

On Wed, Dec 10, 2008 at 8:59 AM, Olivier <[EMAIL PROTECTED]> wrote:
>
> Hi everyone,
>
> I've read in capistrano 2.5 release notes that you can use this syntax
> in parallel helper :
>
> session.when "server.host =~ /app/", "/command/to/execute"
>
>
> I'd would like it it's possible to access the server variable in the
> second string specifying the command to run. I'd like to do something
> like that :
> session.when "server.host =~ /app/", "/command/to/execute #
> {server.options[:foo]"
>
> Is it possible ? Or is there a better way to do this ?
>
> Thanks,
> Olivier
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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