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