fic some issues
This commit is contained in:
parent
f9cee9ac85
commit
e27dd058cc
7
dist/npmci.env.js
vendored
7
dist/npmci.env.js
vendored
@ -14,10 +14,7 @@ exports.configStore = function () {
|
|||||||
dockerFilesBuilt: exports.dockerFilesBuilt,
|
dockerFilesBuilt: exports.dockerFilesBuilt,
|
||||||
dockerFiles: exports.dockerFiles
|
dockerFiles: exports.dockerFiles
|
||||||
};
|
};
|
||||||
plugins.smartfile.memory.toFsSync(JSON.stringify(config), {
|
plugins.smartfile.memory.toFsSync(JSON.stringify(config), paths.NpmciPackageConfig);
|
||||||
fileName: "config.json",
|
|
||||||
filePath: paths.NpmciPackageRoot
|
|
||||||
});
|
|
||||||
};
|
};
|
||||||
var configLoad = function () {
|
var configLoad = function () {
|
||||||
// internal config to transfer information in between npmci shell calls
|
// internal config to transfer information in between npmci shell calls
|
||||||
@ -46,4 +43,4 @@ var configLoad = function () {
|
|||||||
};
|
};
|
||||||
configLoad();
|
configLoad();
|
||||||
|
|
||||||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5wbWNpLmVudi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsUUFBTyxnQkFBZ0IsQ0FBQyxDQUFBO0FBQ3hCLElBQVksT0FBTyxXQUFNLGlCQUFpQixDQUFDLENBQUE7QUFDM0MsSUFBWSxLQUFLLFdBQU0sZUFBZSxDQUFDLENBQUE7QUFDdkMsNEJBQXNCLGFBQWEsQ0FBQyxDQUFBO0FBSXBDLEVBQUUsQ0FBQSxDQUFDLE9BQU8sQ0FBQyxHQUFHLENBQUMsYUFBYSxDQUFDO0lBQUMsWUFBSSxHQUFHLElBQUkscUJBQU8sQ0FBQyxPQUFPLENBQUMsR0FBRyxDQUFDLGFBQWEsQ0FBQyxDQUFDO0FBRWpFLGtCQUFVLEdBQVUsT0FBTyxDQUFDLEdBQUcsQ0FBQyxjQUFjLENBQUM7QUFJL0Msd0JB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IHBsdWdpbnMuc21hcnRmaWxlLmZzLnRvT2JqZWN0U3luYyhwYXRocy5OcG1jaVBhY2thZ2VDb25maWcsXCJqc29uXCIpO1xuICAgIH1cbiAgICBjYXRjaChlcnIpe1xuICAgICAgICBjb25maWcgPSB7fTtcbiAgICAgICAgY29uZmlnU3RvcmUoKTtcbiAgICAgICAgcGx1Z2lucy5iZWF1dHlsb2cubG9nKFwiY29uZmlnIGluaXRpYWxpemVkIVwiKTtcbiAgICB9XG5cbiAgICAvLyBwcm9qZWN0IGNvbmZpZ1xuICAgIHRyeSB7XG4gICAgICAgIGlmKCFjb25maWcucHJvamVjdCl7XG4gICAgICAgICAgICBjb25maWcucHJvamVjdCA9IHBsdWdpbnMuc21hcnRmaWxlLmZzLnRvT2JqZWN0U3luYyhwYXRocy5OcG1jaVByb2plY3REaXIsXCJucG1jaS5qc29uXCIpO1xuICAgICAgICAgICAgcGx1Z2lucy5iZWF1dHlsb2cub2soXCJwcm9qZWN0IGNvbmZpZyBmb3VuZCFcIik7XG4gICAgICAgIH07XG4gICAgfVxuICAgIGNhdGNoKGVycil7XG4gICAgICAgIGNvbmZpZy5wcm9qZWN0ID0ge307XG4gICAgICAgIHBsdWdpbnMuYmVhdXR5bG9nLmxvZyhcIm5vIHByb2plY3QgY29uZmlnIGZvdW5kLCBzbyBwcm9jZWVkaW5nIHdpdGggZGVmYXVsdCBiZWhhdmlvdXIhXCIpO1xuICAgIH1cbiAgICBcbiAgICBjb25maWcuZG9ja2VyUmVnaXN0cnkgPyBkb2NrZXJSZWdpc3RyeSA9IGNvbmZpZy5kb2NrZXJSZWdpc3RyeSA6IHZvaWQoMCk7XG4gICAgY29uZmlnLmRvY2tlckZpbGVzQnVpbHQgPyBkb2NrZXJGaWxlc0J1aWx0ID0gY29uZmlnLmRvY2tlckZpbGVzQnVpbHQgOiB2b2lkKDApO1xufVxuY29uZmlnTG9hZCgpOyJdfQ==
|
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJz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luZyB3aXRoIGRlZmF1bHQgYmVoYXZpb3VyIVwiKTtcbiAgICB9XG4gICAgXG4gICAgY29uZmlnLmRvY2tlclJlZ2lzdHJ5ID8gZG9ja2VyUmVnaXN0cnkgPSBjb25maWcuZG9ja2VyUmVnaXN0cnkgOiB2b2lkKDApO1xuICAgIGNvbmZpZy5kb2NrZXJGaWxlc0J1aWx0ID8gZG9ja2VyRmlsZXNCdWlsdCA9IGNvbmZpZy5kb2NrZXJGaWxlc0J1aWx0IDogdm9pZCgwKTtcbn1cbmNvbmZpZ0xvYWQoKTsiXX0=
|
||||||
|
4
dist/npmci.prepare.js
vendored
4
dist/npmci.prepare.js
vendored
File diff suppressed because one or more lines are too long
6
dist/npmci.ssh.js
vendored
6
dist/npmci.ssh.js
vendored
@ -12,14 +12,14 @@ exports.evaluateSshkey = function (sshkeyEnvVarArg) {
|
|||||||
var resultArray = sshRegex.exec(sshkeyEnvVarArg);
|
var resultArray = sshRegex.exec(sshkeyEnvVarArg);
|
||||||
var sshKey = new plugins.smartssh.SshKey();
|
var sshKey = new plugins.smartssh.SshKey();
|
||||||
if (resultArray[1] && resultArray[1] != "undefined")
|
if (resultArray[1] && resultArray[1] != "undefined")
|
||||||
sshKey.privateKeyBase64 = resultArray[1];
|
sshKey.privKeyBase64 = resultArray[1];
|
||||||
var publicKey;
|
var publicKey;
|
||||||
if (resultArray[2] && resultArray[2] != "undefined")
|
if (resultArray[2] && resultArray[2] != "undefined")
|
||||||
sshKey.publicKeyBase64 = resultArray[2];
|
sshKey.pubKeyBase64 = resultArray[2];
|
||||||
var host;
|
var host;
|
||||||
if (resultArray[3] && resultArray[3] != "undefined")
|
if (resultArray[3] && resultArray[3] != "undefined")
|
||||||
sshKey.host = resultArray[1];
|
sshKey.host = resultArray[1];
|
||||||
sshInstance.addKey(sshKey);
|
sshInstance.addKey(sshKey);
|
||||||
};
|
};
|
||||||
|
|
||||||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjoz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23,10 +23,7 @@ export let configStore = () => {
|
|||||||
}
|
}
|
||||||
plugins.smartfile.memory.toFsSync(
|
plugins.smartfile.memory.toFsSync(
|
||||||
JSON.stringify(config),
|
JSON.stringify(config),
|
||||||
{
|
paths.NpmciPackageConfig
|
||||||
fileName:"config.json",
|
|
||||||
filePath:paths.NpmciPackageRoot
|
|
||||||
}
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ let npm = function(){
|
|||||||
plugins.beautylog.error("no access token found! Exiting!");
|
plugins.beautylog.error("no access token found! Exiting!");
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
}
|
}
|
||||||
plugins.smartfile.memory.toFsSync(npmrcFileString,{fileName:".npmrc",filePath:"/root"});
|
plugins.smartfile.memory.toFsSync(npmrcFileString,"/root/.npmrc");
|
||||||
done.resolve();
|
done.resolve();
|
||||||
return done.promise;
|
return done.promise;
|
||||||
};
|
};
|
||||||
|
@ -14,9 +14,9 @@ export let evaluateSshkey = (sshkeyEnvVarArg) => {
|
|||||||
let resultArray = sshRegex.exec(sshkeyEnvVarArg);
|
let resultArray = sshRegex.exec(sshkeyEnvVarArg);
|
||||||
let sshKey = new plugins.smartssh.SshKey();
|
let sshKey = new plugins.smartssh.SshKey();
|
||||||
|
|
||||||
if(resultArray[1] && resultArray[1] != "undefined") sshKey.privateKeyBase64 = resultArray[1];
|
if(resultArray[1] && resultArray[1] != "undefined") sshKey.privKeyBase64 = resultArray[1];
|
||||||
let publicKey:string;
|
let publicKey:string;
|
||||||
if(resultArray[2] && resultArray[2] != "undefined") sshKey.publicKeyBase64 = resultArray[2];
|
if(resultArray[2] && resultArray[2] != "undefined") sshKey.pubKeyBase64 = resultArray[2];
|
||||||
let host:string;
|
let host:string;
|
||||||
if(resultArray[3] && resultArray[3] != "undefined") sshKey.host = resultArray[1];
|
if(resultArray[3] && resultArray[3] != "undefined") sshKey.host = resultArray[1];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user