mirror of
https://github.com/Febbweiss/ProjectDeployer.git
synced 2026-03-04 22:25:38 +00:00
Refactoring: reorganize files between client and server + initiate deployment
This commit is contained in:
27
server/lib/projects.methods.js
Normal file
27
server/lib/projects.methods.js
Normal 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);
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user