refactor(stream) stream -> pipe

This commit is contained in:
coderaiser 2013-09-16 13:57:58 +00:00
parent 9ba0fb377e
commit 02b06c4395
3 changed files with 7 additions and 7 deletions

View file

@ -11,7 +11,7 @@
SLASH,
ISWIN32,
ext,
path, fs, zlib, url, stream,
path, fs, zlib, url, pipe,
OK, FILE_NOT_FOUND, MOVED_PERMANENTLY = 301,
REQUEST, RESPONSE,
@ -100,7 +100,7 @@
exports.VOLUMES = getVolumes(),
/* Additional Modules */
exports.stream = stream = srvrequire('stream'),
exports.pipe = pipe = srvrequire('pipe'),
exports.socket = srvrequire('socket'),
exports.auth = srvrequire('auth').auth,
exports.appcache = srvrequire('appcache'),
@ -233,7 +233,7 @@
query : getQuery(p.request)
}) );
stream.createPipe({
pipe.create({
from: p.name,
write: p.response,
zip : lGzip && !p.gziped,

View file

@ -3,7 +3,7 @@
if (!global.cloudcmd)
return console.log(
'# stream.js' + '\n' +
'# pipe.js' + '\n' +
'# -----------' + '\n' +
'# Module is part of Cloud Commander,' + '\n' +
'# used for work with stream.' + '\n' +
@ -16,7 +16,7 @@
Util = main.util,
zlib = main.zlib;
exports.createPipe = function(pParams) {
exports.create = function(pParams) {
var lZlib, lError, lMsg, lRead, lWrite, lIsFsWrite,
p = pParams;

View file

@ -17,7 +17,7 @@
fs = main.fs,
path = main.path,
Util = main.util,
stream = main.stream,
pipe = main.pipe,
CloudFunc = main.cloudfunc,
dir = main.dir,
OK = 200,
@ -145,7 +145,7 @@
});
else
stream.createPipe({
pipe.create({
read : p.request,
to : p.name,
callback : function(pError) {