-
Notifications
You must be signed in to change notification settings - Fork 31
/
index.js
47 lines (36 loc) · 1.08 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
var assign = require( 'object-assign' );
module.exports = VinylFtp;
function VinylFtp( config ) {
if ( !( this instanceof VinylFtp ) ) return new VinylFtp( config );
this.config = assign( {
parallel: 3,
maxConnections: config.parallel || 5,
log: null,
timeOffset: 0,
idleTimeout: 100,
password: config.password || config.pass,
reload: false
}, config );
// connection pool
this.queue = [];
this.connectionCount = 0;
this.idle = [];
this.idleTimer = null;
}
VinylFtp.create = function ( config ) {
return new VinylFtp( config );
};
VinylFtp.prototype.glob = require( './lib/glob' );
VinylFtp.prototype.src = require( './lib/src' );
VinylFtp.prototype.dest = require( './lib/dest' );
VinylFtp.prototype.delete = require( './lib/delete' );
VinylFtp.prototype.rmdir = require( './lib/rmdir' );
VinylFtp.prototype.dest = require( './lib/dest' );
VinylFtp.prototype.clean = require( './lib/clean' );
assign(
VinylFtp.prototype,
require( './lib/filter' ),
require( './lib/mode' ),
require( './lib/ftp' ),
require( './lib/helpers' )
);