paypro: use root-certs as a module.
This commit is contained in:
parent
4319395aa8
commit
2bb8b520a2
|
@ -9,6 +9,7 @@ var puts = function(error, stdout, stderr) {
|
|||
//sys.puts(stdout);
|
||||
//sys.puts(stderr);
|
||||
};
|
||||
var rootCerts = require('./root-certs');
|
||||
|
||||
var modules = [
|
||||
'lib/Address',
|
||||
|
@ -142,18 +143,6 @@ var createTestData = function() {
|
|||
return tb.bundle();
|
||||
};
|
||||
|
||||
var createTrusted = function(callback) {
|
||||
var cp = require('child_process');
|
||||
var ps = cp.spawn('/bin/bash', ['./browser/root-certs'], {
|
||||
customFds: [0, 1, 2],
|
||||
cwd: __dirname + '/..'
|
||||
});
|
||||
return ps.on('exit', function(code) {
|
||||
if (code !== 0) return callback(new Error('Exit code: ' + code));
|
||||
return callback();
|
||||
});
|
||||
};
|
||||
|
||||
if (require.main === module) {
|
||||
var list = function(val) {
|
||||
return val.split(',');
|
||||
|
|
Loading…
Reference in New Issue