()
| 644 | } |
| 645 | |
| 646 | function status() { |
| 647 | var pids = getRunningPids(); |
| 648 | if (pids.length > 0) { |
| 649 | return { running: true, pids: pids.map(function(p) { return { pid: p, cmd: getCmdLine(p) }; }), log: path.relative(WORKSPACE_ROOT, LOG_FILE) }; |
| 650 | } |
| 651 | return { running: false }; |
| 652 | } |
| 653 | |
| 654 | function tailLog(lines) { |
| 655 | if (!fs.existsSync(LOG_FILE)) return { error: 'No log file' }; |
no test coverage detected