net-sftp 1.0.1 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/doc/LICENSE-BSD +1 -1
- data/doc/LICENSE-RUBY +1 -1
- data/doc/faq/faq.html +32 -32
- data/examples/asynchronous.rb +1 -1
- data/examples/get-put.rb +1 -1
- data/examples/sftp-open-uri.rb +1 -1
- data/examples/ssh-service.rb +1 -1
- data/examples/synchronous.rb +1 -1
- data/lib/net/sftp.rb +1 -1
- data/lib/net/sftp/errors.rb +1 -1
- data/lib/net/sftp/operations/abstract.rb +1 -1
- data/lib/net/sftp/operations/close.rb +1 -1
- data/lib/net/sftp/operations/errors.rb +1 -1
- data/lib/net/sftp/operations/fsetstat.rb +1 -1
- data/lib/net/sftp/operations/fstat.rb +1 -1
- data/lib/net/sftp/operations/lstat.rb +1 -1
- data/lib/net/sftp/operations/mkdir.rb +1 -1
- data/lib/net/sftp/operations/open.rb +1 -1
- data/lib/net/sftp/operations/opendir.rb +1 -1
- data/lib/net/sftp/operations/read.rb +1 -1
- data/lib/net/sftp/operations/readdir.rb +1 -1
- data/lib/net/sftp/operations/realpath.rb +1 -1
- data/lib/net/sftp/operations/remove.rb +1 -1
- data/lib/net/sftp/operations/rename.rb +1 -1
- data/lib/net/sftp/operations/rmdir.rb +1 -1
- data/lib/net/sftp/operations/services.rb +1 -1
- data/lib/net/sftp/operations/setstat.rb +1 -1
- data/lib/net/sftp/operations/stat.rb +1 -1
- data/lib/net/sftp/operations/write.rb +1 -1
- data/lib/net/sftp/protocol/01/attributes.rb +1 -1
- data/lib/net/sftp/protocol/01/impl.rb +1 -1
- data/lib/net/sftp/protocol/01/packet-assistant.rb +1 -1
- data/lib/net/sftp/protocol/01/services.rb +1 -1
- data/lib/net/sftp/protocol/02/impl.rb +1 -1
- data/lib/net/sftp/protocol/02/packet-assistant.rb +1 -1
- data/lib/net/sftp/protocol/02/services.rb +1 -1
- data/lib/net/sftp/protocol/03/impl.rb +1 -1
- data/lib/net/sftp/protocol/03/packet-assistant.rb +1 -1
- data/lib/net/sftp/protocol/03/services.rb +1 -1
- data/lib/net/sftp/protocol/04/attributes.rb +1 -1
- data/lib/net/sftp/protocol/04/impl.rb +1 -1
- data/lib/net/sftp/protocol/04/packet-assistant.rb +1 -1
- data/lib/net/sftp/protocol/04/services.rb +1 -1
- data/lib/net/sftp/protocol/05/impl.rb +1 -1
- data/lib/net/sftp/protocol/05/packet-assistant.rb +1 -1
- data/lib/net/sftp/protocol/05/services.rb +1 -1
- data/lib/net/sftp/protocol/constants.rb +1 -1
- data/lib/net/sftp/protocol/driver.rb +4 -1
- data/lib/net/sftp/protocol/packet-assistant.rb +1 -1
- data/lib/net/sftp/protocol/services.rb +1 -1
- data/lib/net/sftp/session.rb +17 -6
- data/lib/net/sftp/version.rb +3 -3
- data/lib/uri/open-sftp.rb +1 -1
- data/test/ALL-TESTS.rb +1 -1
- data/test/operations/tc_abstract.rb +1 -1
- data/test/operations/tc_close.rb +1 -1
- data/test/operations/tc_fsetstat.rb +1 -1
- data/test/operations/tc_fstat.rb +1 -1
- data/test/operations/tc_lstat.rb +1 -1
- data/test/operations/tc_mkdir.rb +1 -1
- data/test/operations/tc_open.rb +1 -1
- data/test/operations/tc_opendir.rb +1 -1
- data/test/operations/tc_read.rb +1 -1
- data/test/operations/tc_readdir.rb +1 -1
- data/test/operations/tc_realpath.rb +1 -1
- data/test/operations/tc_remove.rb +1 -1
- data/test/operations/tc_rmdir.rb +1 -1
- data/test/operations/tc_setstat.rb +1 -1
- data/test/operations/tc_stat.rb +1 -1
- data/test/operations/tc_write.rb +1 -1
- data/test/protocol/01/tc_attributes.rb +1 -1
- data/test/protocol/01/tc_impl.rb +1 -1
- data/test/protocol/01/tc_packet_assistant.rb +1 -1
- data/test/protocol/02/tc_impl.rb +1 -1
- data/test/protocol/02/tc_packet_assistant.rb +1 -1
- data/test/protocol/03/tc_impl.rb +1 -1
- data/test/protocol/03/tc_packet_assistant.rb +1 -1
- data/test/protocol/04/tc_attributes.rb +1 -1
- data/test/protocol/04/tc_impl.rb +1 -1
- data/test/protocol/04/tc_packet_assistant.rb +1 -1
- data/test/protocol/05/tc_impl.rb +1 -1
- data/test/protocol/05/tc_packet_assistant.rb +1 -1
- data/test/protocol/tc_driver.rb +1 -1
- metadata +2 -2
data/doc/LICENSE-BSD
CHANGED
data/doc/LICENSE-RUBY
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
Net::SFTP is copyrighted free software by Jamis Buck <
|
1
|
+
Net::SFTP is copyrighted free software by Jamis Buck <jamis@37signals.com>.
|
2
2
|
You can redistribute it and/or modify it under either the terms of the GPL
|
3
3
|
(see the file GPL), or the conditions below:
|
4
4
|
|
data/doc/faq/faq.html
CHANGED
@@ -60,56 +60,56 @@
|
|
60
60
|
<h1>Net::SFTP FAQ</h1>
|
61
61
|
<div class="faq-list">
|
62
62
|
<ul>
|
63
|
-
<li><a href='#
|
63
|
+
<li><a href='#2254408'>What is Net::SFTP?</a></li>
|
64
64
|
<li>How do I…
|
65
65
|
<ul>
|
66
66
|
<li>...connect to an <span class="caps">SFTP</span> server?
|
67
67
|
<ul>
|
68
|
-
<li><a href='#
|
69
|
-
<li><a href='#
|
68
|
+
<li><a href='#2254328'>I’d like to connect without first getting a Net::SSH connection…</a></li>
|
69
|
+
<li><a href='#2254288'>I already have an open Net::SSH connection…</a></li>
|
70
70
|
</ul>
|
71
71
|
</li>
|
72
72
|
<li>...upload data?
|
73
73
|
<ul>
|
74
|
-
<li><a href='#
|
75
|
-
<li><a href='#
|
74
|
+
<li><a href='#2254198'>I want to upload an entire file on disk…</a></li>
|
75
|
+
<li><a href='#2254138'>I want to upload bytes from a string or other object…</a></li>
|
76
76
|
</ul>
|
77
77
|
</li>
|
78
78
|
<li>...download data?
|
79
79
|
<ul>
|
80
|
-
<li><a href='#
|
81
|
-
<li><a href='#
|
82
|
-
<li><a href='#
|
80
|
+
<li><a href='#2254048'>I want to download directly to a local file…</a></li>
|
81
|
+
<li><a href='#2253998'>I want to download to a string in memory…</a></li>
|
82
|
+
<li><a href='#2253958'>I want to be notified of the progress of the download…</a></li>
|
83
83
|
</ul>
|
84
84
|
</li>
|
85
85
|
<li>...manage file permissions?
|
86
86
|
<ul>
|
87
|
-
<li><a href='#
|
88
|
-
<li><a href='#
|
89
|
-
<li><a href='#
|
87
|
+
<li><a href='#2253878'>I want to query a file’s permissions…</a></li>
|
88
|
+
<li><a href='#2253828'>I want to change a file’s permissions…</a></li>
|
89
|
+
<li><a href='#2253788'>I already have an open handle for the remote file…</a></li>
|
90
90
|
</ul>
|
91
91
|
</li>
|
92
92
|
<li>...manage directories?
|
93
93
|
<ul>
|
94
|
-
<li><a href='#
|
95
|
-
<li><a href='#
|
96
|
-
<li><a href='#
|
94
|
+
<li><a href='#2253688'>I want to query the contents of a directory…</a></li>
|
95
|
+
<li><a href='#2253648'>I want to create a directory…</a></li>
|
96
|
+
<li><a href='#2253608'>I want to remove a directory…</a></li>
|
97
97
|
</ul>
|
98
98
|
</li>
|
99
|
-
<li><a href='#
|
100
|
-
<li><a href='#
|
99
|
+
<li><a href='#2253538'>...delete a file?</a></li>
|
100
|
+
<li><a href='#2253498'>...rename a file?</a></li>
|
101
101
|
</ul>
|
102
102
|
</li>
|
103
103
|
</ul>
|
104
104
|
</div>
|
105
|
-
<a name='
|
105
|
+
<a name='2254408'></a>
|
106
106
|
<div class='faq-title'>What is Net::SFTP?</div>
|
107
107
|
<div class='faq-answer'><p>Net::SFTP is a pure-Ruby implementation of the <span class="caps">SFTP</span> protocol. That’s
|
108
108
|
“SFTP” as in “Secure File Transfer Protocol”, as defined as an adjuct to the
|
109
109
|
<span class="caps">SSH</span> specification. <em>Not</em> “SFTP” as in “Secure <span class="caps">FTP</span>” (a <em>completely</em> different
|
110
110
|
beast). Nor is it an implementation of the “Simple File Transfer Protocol”
|
111
111
|
(which is in no way secure).</p></div>
|
112
|
-
<a name='
|
112
|
+
<a name='2254328'></a>
|
113
113
|
<div class='faq-title'>How do I… ...connect to an <span class="caps">SFTP</span> server? I’d like to connect without first getting a Net::SSH connection…</div>
|
114
114
|
<div class='faq-answer'><p>Something like this:</p>
|
115
115
|
|
@@ -124,7 +124,7 @@ beast). Nor is it an implementation of the “Simple File Transfer Protocol&
|
|
124
124
|
|
125
125
|
<p><code>Net::SFTP.start</code> accepts the same parameters as <code>Net::SSH.start</code>,
|
126
126
|
so I’ll direct you to that documentation for all the particulars.</p></div>
|
127
|
-
<a name='
|
127
|
+
<a name='2254288'></a>
|
128
128
|
<div class='faq-title'>How do I… ...connect to an <span class="caps">SFTP</span> server? I already have an open Net::SSH connection…</div>
|
129
129
|
<div class='faq-answer'><p>You can piggy-back an <span class="caps">SFTP</span> connection on an existing Net::SSH
|
130
130
|
connection, which can be useful if you’ve already got an <span class="caps">SSH</span>
|
@@ -143,7 +143,7 @@ connection that you’re using for port forwarding or whatever.</p>
|
|
143
143
|
...
|
144
144
|
end
|
145
145
|
</pre></code></div>
|
146
|
-
<a name='
|
146
|
+
<a name='2254198'></a>
|
147
147
|
<div class='faq-title'>How do I… ...upload data? I want to upload an entire file on disk…</div>
|
148
148
|
<div class='faq-answer'><p>Assuming you already have an <span class="caps">SFTP</span> connection:</p>
|
149
149
|
|
@@ -151,7 +151,7 @@ connection that you’re using for port forwarding or whatever.</p>
|
|
151
151
|
<code><pre>
|
152
152
|
sftp.put_file "/path/to/local.file", "/path/to/remote.file"
|
153
153
|
</pre></code></div>
|
154
|
-
<a name='
|
154
|
+
<a name='2254138'></a>
|
155
155
|
<div class='faq-title'>How do I… ...upload data? I want to upload bytes from a string or other object…</div>
|
156
156
|
<div class='faq-answer'><p>Assuming you already have an <span class="caps">SFTP</span> connection, and your data is stored
|
157
157
|
in a string named <code>data</code>:</p>
|
@@ -174,7 +174,7 @@ without, but be sure to call <code>close_handle</code> when you’re done:</
|
|
174
174
|
puts result.code # the result of the operation
|
175
175
|
sftp.close_handle(handle)
|
176
176
|
</pre></code></div>
|
177
|
-
<a name='
|
177
|
+
<a name='2254048'></a>
|
178
178
|
<div class='faq-title'>How do I… ...download data? I want to download directly to a local file…</div>
|
179
179
|
<div class='faq-answer'><p>Assuming you already have an <span class="caps">SFTP</span> connection:</p>
|
180
180
|
|
@@ -182,7 +182,7 @@ without, but be sure to call <code>close_handle</code> when you’re done:</
|
|
182
182
|
<code><pre>
|
183
183
|
sftp.get_file "/path/to/remote.file", "/path/to/local.file"
|
184
184
|
</pre></code></div>
|
185
|
-
<a name='
|
185
|
+
<a name='2253998'></a>
|
186
186
|
<div class='faq-title'>How do I… ...download data? I want to download to a string in memory…</div>
|
187
187
|
<div class='faq-answer'><p>Assuming you already have an <span class="caps">SFTP</span> connection:</p>
|
188
188
|
|
@@ -193,7 +193,7 @@ without, but be sure to call <code>close_handle</code> when you’re done:</
|
|
193
193
|
data = sftp.read(handle)
|
194
194
|
end
|
195
195
|
</pre></code></div>
|
196
|
-
<a name='
|
196
|
+
<a name='2253958'></a>
|
197
197
|
<div class='faq-title'>How do I… ...download data? I want to be notified of the progress of the download…</div>
|
198
198
|
<div class='faq-answer'><p>You can specify both a “chunk size” and a “progress callback”. The
|
199
199
|
callback will be invoked for every “chunk size” bytes that are
|
@@ -212,7 +212,7 @@ received:</p>
|
|
212
212
|
end
|
213
213
|
end
|
214
214
|
</pre></code></div>
|
215
|
-
<a name='
|
215
|
+
<a name='2253878'></a>
|
216
216
|
<div class='faq-title'>How do I… ...manage file permissions? I want to query a file’s permissions…</div>
|
217
217
|
<div class='faq-answer'><p>File permissions are one of the <code>stat</code> attributes of files and
|
218
218
|
directories:</p>
|
@@ -221,7 +221,7 @@ directories:</p>
|
|
221
221
|
<code><pre>
|
222
222
|
p sftp.stat("/path/to/remote.file").permissions
|
223
223
|
</pre></code></div>
|
224
|
-
<a name='
|
224
|
+
<a name='2253828'></a>
|
225
225
|
<div class='faq-title'>How do I… ...manage file permissions? I want to change a file’s permissions…</div>
|
226
226
|
<div class='faq-answer'><p>Just use <code>setstat</code> to change the permissions of an existing file:</p>
|
227
227
|
|
@@ -229,7 +229,7 @@ directories:</p>
|
|
229
229
|
<code><pre>
|
230
230
|
sftp.setstat("/path/to/remote.file", :permissions => 0644)
|
231
231
|
</pre></code></div>
|
232
|
-
<a name='
|
232
|
+
<a name='2253788'></a>
|
233
233
|
<div class='faq-title'>How do I… ...manage file permissions? I already have an open handle for the remote file…</div>
|
234
234
|
<div class='faq-answer'><p>If you have a handle for the remote file, you can use <code>fstat</code> and
|
235
235
|
<code>fsetstat</code> to query and set the permissions:</p>
|
@@ -241,7 +241,7 @@ directories:</p>
|
|
241
241
|
sftp.fsetstat(handle, :permissions => permissions | 0444)
|
242
242
|
end
|
243
243
|
</pre></code></div>
|
244
|
-
<a name='
|
244
|
+
<a name='2253688'></a>
|
245
245
|
<div class='faq-title'>How do I… ...manage directories? I want to query the contents of a directory…</div>
|
246
246
|
<div class='faq-answer'><p>You query the contents of a directory by calling <code>opendir</code> to obtain
|
247
247
|
a handle to the directory, and then using <code>readdir</code> on the handle to
|
@@ -259,7 +259,7 @@ you’re done:</p>
|
|
259
259
|
end
|
260
260
|
sftp.close_handle(handle)
|
261
261
|
</pre></code></div>
|
262
|
-
<a name='
|
262
|
+
<a name='2253648'></a>
|
263
263
|
<div class='faq-title'>How do I… ...manage directories? I want to create a directory…</div>
|
264
264
|
<div class='faq-answer'><p>Use <code>mkdir</code>:</p>
|
265
265
|
|
@@ -267,7 +267,7 @@ you’re done:</p>
|
|
267
267
|
<code><pre>
|
268
268
|
sftp.mkdir("/path/to/remote/dir", :permissions => 0500)
|
269
269
|
</pre></code></div>
|
270
|
-
<a name='
|
270
|
+
<a name='2253608'></a>
|
271
271
|
<div class='faq-title'>How do I… ...manage directories? I want to remove a directory…</div>
|
272
272
|
<div class='faq-answer'><p>Use <code>rmdir</code>:</p>
|
273
273
|
|
@@ -275,7 +275,7 @@ you’re done:</p>
|
|
275
275
|
<code><pre>
|
276
276
|
sftp.rmdir("/path/to/remote/dir")
|
277
277
|
</pre></code></div>
|
278
|
-
<a name='
|
278
|
+
<a name='2253538'></a>
|
279
279
|
<div class='faq-title'>How do I… ...delete a file?</div>
|
280
280
|
<div class='faq-answer'><p>Use <code>remove</code>:</p>
|
281
281
|
|
@@ -283,7 +283,7 @@ you’re done:</p>
|
|
283
283
|
<code><pre>
|
284
284
|
sftp.remove("/path/to/remote.file")
|
285
285
|
</pre></code></div>
|
286
|
-
<a name='
|
286
|
+
<a name='2253498'></a>
|
287
287
|
<div class='faq-title'>How do I… ...rename a file?</div>
|
288
288
|
<div class='faq-answer'><p>Use <code>rename</code>:</p>
|
289
289
|
|
data/examples/asynchronous.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
data/examples/get-put.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
data/examples/sftp-open-uri.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
data/examples/ssh-service.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
data/examples/synchronous.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
data/lib/net/sftp.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
data/lib/net/sftp/errors.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
@@ -30,6 +30,9 @@ module Net ; module SFTP ; module Protocol
|
|
30
30
|
# The current state of the driver. This will be one of +unconfirmed+,
|
31
31
|
# +init+, +version+, +open+, or +closed+.
|
32
32
|
attr_reader :state
|
33
|
+
|
34
|
+
# The underlying SSH channel supporting this SFTP connection.
|
35
|
+
attr_reader :channel
|
33
36
|
|
34
37
|
# Create a new SFTP protocol driver object on the given SSH connection.
|
35
38
|
# +buffers+ is a reference to a buffer factory, +version+ is the highest
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
data/lib/net/sftp/session.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
@@ -23,6 +23,10 @@ module Net ; module SFTP
|
|
23
23
|
class Session
|
24
24
|
include Protocol::Constants
|
25
25
|
|
26
|
+
# remove this, inherited from Kernel, so that sftp.open will go via
|
27
|
+
# method_missing
|
28
|
+
undef :open
|
29
|
+
|
26
30
|
# The status of the last synchronously executed operation. This is either
|
27
31
|
# +nil+, or an object that responds to <tt>:code</tt>, <tt>:message</tt>,
|
28
32
|
# and <tt>:language</tt>.
|
@@ -43,11 +47,11 @@ module Net ; module SFTP
|
|
43
47
|
|
44
48
|
@driver = ns.protocol.driver
|
45
49
|
@driver.on_open do |d|
|
46
|
-
d.on_attrs
|
47
|
-
d.on_data
|
48
|
-
d.on_handle
|
49
|
-
d.on_name
|
50
|
-
d.on_status
|
50
|
+
d.on_attrs( &method( :do_attrs ))
|
51
|
+
d.on_data( &method( :do_data ))
|
52
|
+
d.on_handle(&method( :do_handle ))
|
53
|
+
d.on_name( &method( :do_name ))
|
54
|
+
d.on_status(&method( :do_status ))
|
51
55
|
|
52
56
|
if block_given?
|
53
57
|
begin
|
@@ -78,6 +82,13 @@ module Net ; module SFTP
|
|
78
82
|
@driver.state
|
79
83
|
end
|
80
84
|
|
85
|
+
# Return the underlying SSH channel that supports this SFTP connection.
|
86
|
+
# Useful for adding custom callbacks for some events, or for accessing
|
87
|
+
# the underlying connection beneath the channel.
|
88
|
+
def channel
|
89
|
+
@driver.channel
|
90
|
+
end
|
91
|
+
|
81
92
|
# Closes the SFTP connection, but leaves the SSH connection open.
|
82
93
|
def close_channel
|
83
94
|
@driver.close
|
data/lib/net/sftp/version.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
@@ -17,8 +17,8 @@
|
|
17
17
|
module Net ; module SFTP ; module Version
|
18
18
|
|
19
19
|
MAJOR = 1
|
20
|
-
MINOR =
|
21
|
-
TINY =
|
20
|
+
MINOR = 1
|
21
|
+
TINY = 0
|
22
22
|
|
23
23
|
STRING = [MAJOR,MINOR,TINY].join('.')
|
24
24
|
|
data/lib/uri/open-sftp.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# =======================================================================
|
2
2
|
# Net::SSH -- A Ruby module implementing the SSH2 client protocol
|
3
|
-
# Copyright (C) 2004 Jamis Buck (
|
3
|
+
# Copyright (C) 2004 Jamis Buck (jamis@37signals.com)
|
4
4
|
#
|
5
5
|
# This library is free software; you can redistribute it and/or
|
6
6
|
# modify it under the terms of the GNU Lesser General Public
|
data/test/ALL-TESTS.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
data/test/operations/tc_close.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
data/test/operations/tc_fstat.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
data/test/operations/tc_lstat.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
data/test/operations/tc_mkdir.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
data/test/operations/tc_open.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
data/test/operations/tc_read.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
data/test/operations/tc_rmdir.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
data/test/operations/tc_stat.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
data/test/operations/tc_write.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
data/test/protocol/01/tc_impl.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
data/test/protocol/02/tc_impl.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
data/test/protocol/03/tc_impl.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
data/test/protocol/04/tc_impl.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
data/test/protocol/05/tc_impl.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
data/test/protocol/tc_driver.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SFTP Secure FTP Client
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.11
|
|
3
3
|
specification_version: 1
|
4
4
|
name: net-sftp
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 1.0
|
7
|
-
date:
|
6
|
+
version: 1.1.0
|
7
|
+
date: 2006-01-02 00:00:00 -07:00
|
8
8
|
summary: Net::SFTP is a pure-Ruby implementation of the SFTP client protocol.
|
9
9
|
require_paths:
|
10
10
|
- lib
|