Skip to content

Commit 640b73c

Browse files
authored
Merge pull request #70 from nicolasleger/patch-1
Fix Session inline documentation with password
2 parents 1bad65d + bafa61d commit 640b73c

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)