How to use the pn/child_process.exec function in pn

To help you get started, we’ve selected a few pn examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github wikimedia / parsoid / tools / regression-testing.js View on Github external
var checkout = Promise.async(function *(commit) {
		console.log('Checking out: ' + commit);
		yield childProcess.execFile('git', ['checkout', commit], {
			cwd: path.join(__dirname, '..'),
		}).promise;
		console.log('Restarting PHP');
		yield childProcess.exec(
			'sudo systemctl restart php7.2-fpm.service'
		).promise;
	});
	var titles;
github mjswensen / themer / lib / index.spec.js View on Github external
    afterEach(() => child_process.exec(`rm -rf ${testOutputDir}`).promise);
github mjswensen / themer / packages / themer / lib / index.spec.js View on Github external
    afterEach(() => child_process.exec(`rm -rf ${testOutputDir}`).promise);