Skip to content

Commit bafa61d

Browse files
authored
Fix Session inline documentation with password
Like explained in ReadMe
1 parent 7b6f5fb commit bafa61d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/net/sftp.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class Net::SSH::Connection::Session
5656
# SSH session. Blocks until the SFTP session is fully open, and then
5757
# returns the SFTP session.
5858
#
59-
# Net::SSH.start("localhost", "user", "password") do |ssh|
59+
# Net::SSH.start("localhost", "user", :password => "password") do |ssh|
6060
# ssh.sftp.upload!("/local/file.tgz", "/remote/file.tgz")
6161
# ssh.exec! "cd /some/path && tar xf /remote/file.tgz && rm /remote/file.tgz"
6262
# end

0 commit comments

Comments
 (0)