Refactoring: reorganize files between client and server + initiate deployment

This commit is contained in:
2015-11-05 07:58:55 +00:00
parent fd483c0d27
commit 42e5a06750
11 changed files with 177 additions and 59 deletions

View File

@@ -0,0 +1,27 @@
Meteor.methods({
listProjects: function() {
return ProjectService.list();
},
getProject: function(id) {
return ProjectService.get(id);
},
addProject: function(label, git_url, public_url ,commands) {
return ProjectService.insert(label, git_url, public_url ,commands, function(errors, id) {
if( id ) {
/*DeploymentService.deploy(ProjectService.get(id), function(errors, deploymentId) {
});*/
}
});
},
editProject: function(id, label, git_url, public_url ,commands) {
ProjectService.update(id, label, git_url, public_url ,commands);
},
deleteProject: function(id) {
ProjectService.delete(id);
}
});