mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Add sshkeygen test
This commit is contained in:
parent
52475df783
commit
b76010cb5a
@ -14,17 +14,15 @@
|
||||
* limitations under the License.
|
||||
**/
|
||||
|
||||
var exec = require('child_process').exec;
|
||||
var spawn = require('child_process').spawn;
|
||||
var child_process = require('child_process');
|
||||
|
||||
var sshkeygenCommand = "ssh-keygen";
|
||||
|
||||
var log;
|
||||
|
||||
function runSshKeygenCommand(args,cwd,env) {
|
||||
// console.log("[run ssh-keygen] args:", args);
|
||||
return new Promise(function(resolve, reject) {
|
||||
var child = spawn(sshkeygenCommand, args, {cwd: cwd, detached: true, env: env});
|
||||
var child = child_process.spawn(sshkeygenCommand, args, {cwd: cwd, detached: true, env: env});
|
||||
var stdout = "";
|
||||
var stderr = "";
|
||||
|
||||
@ -77,4 +75,4 @@ function generateKey(options) {
|
||||
module.exports = {
|
||||
init: init,
|
||||
generateKey: generateKey,
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user