minor changes

This commit is contained in:
coderaiser 2012-10-29 06:18:08 -04:00
parent b50d98b944
commit 9ea2507fef
5 changed files with 17 additions and 16 deletions

View file

@ -1,6 +1,6 @@
var fs = require('fs'),
DIR = process.cwd(),
SRVDIR = DIR + '/lib/server/',
DIR = process.cwd() + '/',
SRVDIR = DIR + 'lib/server/',
srvfunc = require(SRVDIR + 'srvfunc'),
/* varible contain all watched file names

View file

@ -16,6 +16,13 @@ var https = require('https'),
method: "POST"
};
/**
* function do authentication
* @param pCode
* @param pCallBack
*/
exports.auth = function(pCode, pCallBack){
pCode = pCode.replace('code=','');
@ -28,11 +35,7 @@ exports.auth = function(pCode, pCallBack){
});
};
/**
* function do authentication
* @param pCode
* @param pCallBack
*/
function authenticate(pCode, pCallBack) {
var data = qs.stringify({
client_id : Config.oauth_client_id,

View file

@ -5,10 +5,10 @@
* - Minify
*/
var DIR = process.cwd(),
SRVDIR = DIR + '/lib/server/',
var DIR = process.cwd() + '/',
SRVDIR = DIR + 'lib/server/',
srvfunc = require(SRVDIR + '/srvfunc');
srvfunc = require(SRVDIR + 'srvfunc');
/*
* Обьект для работы с кэшем

View file

@ -1,9 +1,9 @@
/* module make possible connectoin thrue socket.io on a server */
var DIR = process.cwd(),
SRVDIR = DIR + '/lib/server/',
var DIR = process.cwd() + '/',
SRVDIR = DIR + 'lib/server/',
srvfunc = require(SRVDIR + '/srvfunc'),
srvfunc = require(SRVDIR + 'srvfunc'),
io = srvfunc.require('socket.io'),
exec = require('child_process').exec,
@ -14,7 +14,7 @@ var DIR = process.cwd(),
Win32_b = process.platform === 'win32';
/**
* Function listen on servers port
* function listen on servers port
* @pServer {Object} started server object
*/
exports.listen = function(pServer){

View file

@ -79,8 +79,6 @@ var CloudServer = {
/* КОНСТАНТЫ */
INDEX : 'index.html',
LIBDIR : './lib/',
SRVDIR : './lib/server/',
Extensions :{
'.css' : 'text/css',
'.js' : 'text/javascript',