Interesting idea. It seems you're proposing two things: one, a way to define the username from the command line, and a way to define a set of roles to use, overriding the defaults for subsequent tasks. Is that right? If so, the following works today:
cap -s user=username ROLES=web ... Does that work for you? If not, you could pretty easily write a wrapper script that converts [EMAIL PROTECTED] to the above syntax. - Jamis On 6/26/07, Mat Schaffer <[EMAIL PROTECTED]> wrote: > > I enjoy using the capistrano shell. But when explaining it to co- > workers the syntax is always a stumbling block because people often > have to specify a user name (current machine doesn't match the server). > > Then I had this thought: > > Given a group of servers called say 'web'. How cool would this > syntax be: > > cap [EMAIL PROTECTED] > > Then all commands are assumed to have 'with web' as a prefix. > > Thoughts? > > -Mat > > > > --~--~---------~--~----~------------~-------~--~----~ To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/capistrano -~----------~----~----~----~------~----~------~--~---
