Looks very helpful. This may be obvious, but: On Mon, Jun 23, 2008 at 5:55 PM, rachel <[EMAIL PROTECTED]> wrote:
> > * neither the default sftp nor the alternate scp can handle a local > filename starting with a ~ character, like so: > upload( "~/dist/test.jar", "test.jar" ) > upload( "~/dist/test.jar", "test.jar", :via => :scp ) > upload(ENV['HOME']+'/dist/test.jar', 'test.jar') Or, if you want to be extra paranoid: upload(File.join(ENV['HOME'], 'dist', 'test.jar'), 'test.jar') (I think File.join will use backslashes on Windows. Not sure.) > * using scp, you can specify ~/ as the remote directory; using ftp > this fails > upload( "dist/instruct.jar", "~/" ) # sftp does not like the twiddle > # upload via sftp failed on edison: Net::SFTP::StatusException > (Net::SFTP::StatusException open . (4, "failure")) > upload( "dist/instruct.jar", "~/", :via => :scp ) # works > > * probably the most common case, however, works just fine with both > methods. > upload( "dist/instruct.jar", "instruct.jar" ) # works > upload( "dist/instruct.jar", "instruct.jar", :via => :scp ) # works I'm guessing that when entirely relative paths are specified, it's relative to the home directory? --~--~---------~--~----~------------~-------~--~----~ To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/capistrano -~----------~----~----~----~------~----~------~--~---
