forked from Ermlab/nxt-gitlab
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlist-projects.js
More file actions
executable file
·26 lines (20 loc) · 814 Bytes
/
list-projects.js
File metadata and controls
executable file
·26 lines (20 loc) · 814 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Generated by CoffeeScript 1.7.1
(function() {
var Gitlab, credentials, gitlab;
process.stdout.write('\u001B[2J\u001B[0;0f');
Gitlab = require('..');
credentials = require('./credentials');
gitlab = new Gitlab({
url: credentials.url,
token: credentials.token
});
gitlab.projects.all(function(projects) {
var project, _i, _len, _results;
_results = [];
for (_i = 0, _len = projects.length; _i < _len; _i++) {
project = projects[_i];
_results.push(console.log("#" + project.id + ": " + project.name + ", path: " + project.path + ", default_branch: " + project.default_branch + ", private: " + project["private"] + ", owner: " + project.owner.name + " (" + project.owner.email + "), date: " + project.created_at));
}
return _results;
});
}).call(this);