1
0
mirror of https://github.com/mgerb/mywebsite synced 2026-01-12 10:52:47 +00:00

pushed new blog post

This commit is contained in:
2015-10-28 14:37:06 -04:00
parent 77e382c5f1
commit 2e2b29eac1
602 changed files with 63133 additions and 0 deletions

31
node_modules/forever/test/helpers/index.js generated vendored Normal file
View File

@@ -0,0 +1,31 @@
/*
* index.js: Test helpers for forever.
*
* (C) 2015 Charlie Robbins & the Contributors
* MIT LICENCE
*
*/
var path = require('path'),
spawn = require('child_process').spawn;
/*
* function runCmd (cmd, args)
* Executes forever with the `cmd` and arguments.
*/
exports.runCmd = function runCmd(cmd, args) {
var proc = spawn(process.execPath, [
path.resolve(__dirname, '../../', 'bin/forever'),
cmd
].concat(args), {detached: true});
//
// Pipe everything to `stderr` so it can
// be seen when running `npm test`.
//
proc.stdout.pipe(process.stderr);
proc.stderr.pipe(process.stderr);
proc.unref();
return proc;
}