(options, imports, register)
| 5 | |
| 6 | |
| 7 | function setup(options, imports, register) { |
| 8 | // Imports |
| 9 | var events = imports.events; |
| 10 | |
| 11 | // Options: root dir, title |
| 12 | var rootPath = options.root || path.resolve(__dirname, '..', '..'); |
| 13 | |
| 14 | var workspace = new Workspace({ |
| 15 | 'id': options.id, |
| 16 | 'root': rootPath, |
| 17 | 'name': options.title, |
| 18 | 'public': options.public, |
| 19 | 'maxUsers': options.maxUsers |
| 20 | }, events); |
| 21 | |
| 22 | register(null, { |
| 23 | "workspace": workspace |
| 24 | }); |
| 25 | } |
| 26 | |
| 27 | // Exports |
| 28 | module.exports = setup; |
nothing calls this directly
no test coverage detected