|
Re: how does capistrano determine the username?: msg#00117lang.ruby.capistrano.general
Hi John, I could be wrong but I believe that the default username capistrano uses comes from the Net::SSH library. It looks like the Net::SSH library is pulling the username from either the ENV['USER'] || ENV['USERNAME'] environment variables. -Jonathan On Nov 17, 2007, at 8:48 PM, John Joseph Bachir wrote: > > I am making my script prompt for a username, but I would like it to > offer a default of what capistrano would use. It seems as though user > and ssh_options[:username] are both nil at the point where I want to > access them. How does capistrano determine the default username? I > scoured the code for longer than I'd like to admit, and could not find > the relevant logic. > > Thanks, > John > > -- > John Joseph Bachir > http://lyceum.ibiblio.org > http://blog.johnjosephbachir.org > aim/yim/msn/jabber.org/gtalk: johnjosephbachir > 713-494-2704 > http://jjb.cc > > > |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: how does capistrano determine the username?: 00117, John Joseph Bachir |
|---|---|
| Next by Date: | Re: how to see errors on remote hosts?: 00117, Jonathan Weiss |
| Previous by Thread: | Re: how does capistrano determine the username?i: 00117, John Joseph Bachir |
| Next by Thread: | Giving an input_query a response: 00117, Dr Nic |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |