And now I realized there's quite a few way to do this.
As an example, in the stage file I initially set roles like this:

role :app, %w{[email protected]}

Nothing prevents you from interpolating whoami output in there:

user=`whoami`.chop

role :app %W{#{user}@some.server.ip}

notice the change from %w to %W so that interpolation works.

Cheers,
V.-

-- 
-- 
* 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
--- 
You received this message because you are subscribed to the Google Groups 
"Capistrano" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to