do not expose lib project

This commit is contained in:
oleg 2015-12-23 23:11:13 +03:00
parent 139159a525
commit 0215447f6f
2 changed files with 4 additions and 4 deletions

1
app.js
View File

@ -61,7 +61,6 @@ app.lib = {};
app.lib.reader = reader;
app.lib.notifier = notifier;
app.lib.logger = libLogger;
app.lib.project = project;
var configDefaults = {
notify: {},

View File

@ -2,7 +2,8 @@
var Steppy = require('twostep').Steppy,
_ = require('underscore'),
querystring = require('querystring');
querystring = require('querystring'),
libProject = require('./lib/project');
/*
* Pure rest api on pure nodejs follows below
*/
@ -82,7 +83,7 @@ module.exports = function(app) {
Steppy(
function() {
logger.log('Cleaning up project "%s"', projectName);
app.lib.project.remove({
libProject.remove({
baseDir: app.config.paths.projects,
name: projectName
}, this.slot());
@ -121,7 +122,7 @@ module.exports = function(app) {
);
}
app.lib.project.rename({
libProject.rename({
baseDir: app.config.paths.projects,
name: projectName,
newName: newProjectName