public
Description: Pure Ruby implementation of an SFTP (protocols 1-6) client
Homepage: http://rubyforge.org/projects/net-ssh
Clone URL: git://github.com/jamis/net-sftp.git
tests and documentation for Protocol module
jamis (author)
Fri Mar 07 20:53:33 -0800 2008
commit  ad4ea50c363cecd64fca3b7ea3d449e651351339
tree    fa5f032e91ceb326a93d25806d8b91e5f09e565c
parent  220917b9f50367cc7b4a728728a7023dfedac3c2
...
7
8
9
 
 
10
 
 
 
 
 
11
12
13
...
19
20
21
 
22
23
24
25
...
7
8
9
10
11
12
13
14
15
16
17
18
19
20
...
26
27
28
29
30
31
32
33
0
@@ -7,7 +7,14 @@ require 'net/sftp/protocol/06/base'
0
 
0
 module Net; module SFTP
0
 
0
+ # The Protocol module contains the definitions for all supported SFTP
0
+ # protocol versions.
0
   module Protocol
0
+
0
+ # Instantiates and returns a new protocol driver instance for the given
0
+ # protocol version. +session+ must be a valid SFTP session object, and
0
+ # +version+ must be an integer. If an unsupported version is given,
0
+ # an exception will be raised.
0
     def self.load(session, version)
0
       case version
0
       when 1 then V01::Base.new(session)
0
@@ -19,6 +26,7 @@ module Net; module SFTP
0
       else raise NotImplementedError, "unsupported SFTP version #{version.inspect}"
0
       end
0
     end
0
+
0
   end
0
 
0
 end; end
0
\ No newline at end of file

Comments

    No one has commented yet.