From e27dd058cc60837831b09d03cbdd3a4a152434b1 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Sat, 25 Jun 2016 03:19:29 +0200 Subject: [PATCH] fic some issues --- dist/npmci.env.js | 7 ++----- dist/npmci.prepare.js | 4 ++-- dist/npmci.ssh.js | 6 +++--- ts/npmci.env.ts | 5 +---- ts/npmci.prepare.ts | 2 +- ts/npmci.ssh.ts | 4 ++-- 6 files changed, 11 insertions(+), 17 deletions(-) diff --git a/dist/npmci.env.js b/dist/npmci.env.js index 75ee8e3..3cedeea 100644 --- a/dist/npmci.env.js +++ b/dist/npmci.env.js @@ -14,10 +14,7 @@ exports.configStore = function () { dockerFilesBuilt: exports.dockerFilesBuilt, dockerFiles: exports.dockerFiles }; - plugins.smartfile.memory.toFsSync(JSON.stringify(config), { - fileName: "config.json", - filePath: paths.NpmciPackageRoot - }); + plugins.smartfile.memory.toFsSync(JSON.stringify(config), paths.NpmciPackageConfig); }; var configLoad = function () { // internal config to transfer information in between npmci shell calls @@ -46,4 +43,4 @@ var configLoad = function () { }; configLoad(); -//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5wbWNpLmVudi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsUUFBTyxnQkFBZ0IsQ0FBQyxDQUFBO0FBQ3hCLElBQVksT0FBTyxXQUFNLGlCQUFpQixDQUFDLENBQUE7QUFDM0MsSUFBWSxLQUFLLFdBQU0sZUFBZSxDQUFDLENBQUE7QUFDdkMsNEJBQXNCLGFBQWEsQ0FBQyxDQUFBO0FBSXBDLEVBQUUsQ0FBQSxDQUFDLE9BQU8sQ0FBQyxHQUFHLENBQUMsYUFBYSxDQUFDO0lBQUMsWUFBSSxHQUFHLElBQUkscUJBQU8sQ0FBQyxPQUFPLENBQUMsR0FBRyxDQUFDLGFBQWEsQ0FBQyxDQUFDO0FBRWpFLGtCQUFVLEdBQVUsT0FBTyxDQUFDL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ZWN0IGNvbmZpZyBmb3VuZCwgc28gcHJvY2VlZGluZyB3aXRoIGRlZmF1bHQgYmVoYXZpb3VyIVwiKTtcbiAgICB9XG4gICAgXG4gICAgY29uZmlnLmRvY2tlclJlZ2lzdHJ5ID8gZG9ja2VyUmVnaXN0cnkgPSBjb25maWcuZG9ja2VyUmVnaXN0cnkgOiB2b2lkKDApO1xuICAgIGNvbmZpZy5kb2NrZXJGaWxlc0J1aWx0ID8gZG9ja2VyRmlsZXNCdWlsdCA9IGNvbmZpZy5kb2NrZXJGaWxlc0J1aWx0IDogdm9pZCgwKTtcbn1cbmNvbmZpZ0xvYWQoKTsiXX0= diff --git a/dist/npmci.prepare.js b/dist/npmci.prepare.js index f1d9bb1..f2a8033 100644 --- a/dist/npmci.prepare.js +++ b/dist/npmci.prepare.js @@ -14,7 +14,7 @@ var npm = function () { plugins.beautylog.error("no access token found! Exiting!"); process.exit(1); } - plugins.smartfile.memory.toFsSync(npmrcFileString, { fileName: ".npmrc", filePath: "/root" }); + plugins.smartfile.memory.toFsSync(npmrcFileString, "/root/.npmrc"); done.resolve(); return done.promise; }; @@ -54,4 +54,4 @@ exports.prepare = function (serviceArg) { } }; -//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5wbWNpLnByZXBhcmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLFFBQU8sZ0JBQWdCLENBQUMsQ0FBQTtBQUN4QixJQUFZLE9BQU8sV0FBTSxpQkFBaUIsQ0FBQyxDQUFBO0FBRTNDLElBQVksR0FBRyxXQUFNLGFBRXJCLENBQUMsQ0FGaUM7QUFFbEMsSUFBSSxHQUFHLEdBQUc7SUFDTixJQUFJLElBQUksR0FBRyxPQUFPLENBQUMsQ0FBQyxDQUFDLEtBQUssRUFBRSxDQUFDO0lBRTdCLElBQUksV0FBVyxHQUFVLG1DQUFtQyxDQUFDO0lBQzdELElBQUksUUFBUSxHQUFV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pO1xuICAgIHJldHVybiBkb25lLnByb21pc2U7XG59XG5cbmV4cG9ydCBsZXQgcHJlcGFyZSA9IGZ1bmN0aW9uKHNlcnZpY2VBcmc6c3RyaW5nKXtcbiAgICBzd2l0Y2ggKHNlcnZpY2VBcmcpIHtcbiAgICAgICAgY2FzZSBcIm5wbVwiOlxuICAgICAgICAgICAgcmV0dXJuIG5wbSgpO1xuICAgICAgICBjYXNlIFwiZG9ja2VyXCI6XG4gICAgICAgICAgICByZXR1cm4gZG9ja2VyKCk7XG4gICAgICAgIGNhc2UgXCJkb2NrZXItZ2l0bGFiXCI6XG4gICAgICAgICAgICByZXR1cm4gZG9ja2VyR2l0bGFiKClcbiAgICAgICAgZGVmYXVsdDpcbiAgICAgICAgICAgIGJyZWFrO1xuICAgIH1cbn0iXX0= diff --git a/dist/npmci.ssh.js b/dist/npmci.ssh.js index 248511a..e591dfb 100644 --- a/dist/npmci.ssh.js +++ b/dist/npmci.ssh.js @@ -12,14 +12,14 @@ exports.evaluateSshkey = function (sshkeyEnvVarArg) { var resultArray = sshRegex.exec(sshkeyEnvVarArg); var sshKey = new plugins.smartssh.SshKey(); if (resultArray[1] && resultArray[1] != "undefined") - sshKey.privateKeyBase64 = resultArray[1]; + sshKey.privKeyBase64 = resultArray[1]; var publicKey; if (resultArray[2] && resultArray[2] != "undefined") - sshKey.publicKeyBase64 = resultArray[2]; + sshKey.pubKeyBase64 = resultArray[2]; var host; if (resultArray[3] && resultArray[3] != "undefined") sshKey.host = resultArray[1]; sshInstance.addKey(sshKey); }; -//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5wbWNpLnNzaC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsUUFBTyxnQkFBZ0IsQ0FBQyxDQUFBO0FBQ3hCLElBQVksT0FBTyxXQUFNLGlCQUFpQixDQUFDLENBQUE7QUFFM0MsSUFBSSxRQUFRLEdBQUcscUJBQ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1Z2lucy5zbWFydHBhcmFtLmZvckVhY2hNaW5pbWF0Y2gocHJvY2Vzcy5lbnYsXCJOUE1DSV9TU0hLRVlfKlwiLGV2YWx1YXRlU3Noa2V5KTtcbiAgICBzc2hJbnN0YW5jZS53cml0ZVRvRGlzaygpO1xufTtcblxuZXhwb3J0IGxldCBldmFsdWF0ZVNzaGtleSA9IChzc2hrZXlFbnZWYXJBcmcpID0+IHtcbiAgICBsZXQgcmVzdWx0QXJyYXkgPSBzc2hSZWdleC5leGVjKHNzaGtleUVudlZhckFyZyk7XG4gICAgbGV0IHNzaEtleSA9IG5ldyBwbHVnaW5zLnNtYXJ0c3NoLlNzaEtleSgpO1xuICAgIFxuICAgIGlmKHJlc3VsdEFycmF5WzFdICYmIHJlc3VsdEFycmF5WzFdICE9IFwidW5kZWZpbmVkXCIpIHNzaEtleS5wcml2S2V5QmFzZTY0ID0gcmVzdWx0QXJyYXlbMV07XG4gICAgbGV0IHB1YmxpY0tleTpzdHJpbmc7XG4gICAgaWYocmVzdWx0QXJyYXlbMl0gJiYgcmVzdWx0QXJyYXlbMl0gIT0gXCJ1bmRlZmluZWRcIikgc3NoS2V5LnB1YktleUJhc2U2NCA9IHJlc3VsdEFycmF5WzJdO1xuICAgIGxldCBob3N0OnN0cmluZztcbiAgICBpZihyZXN1bHRBcnJheVszXSAmJiByZXN1bHRBcnJheVszXSAhPSBcInVuZGVmaW5lZFwiKSBzc2hLZXkuaG9zdCA9IHJlc3VsdEFycmF5WzFdO1xuICAgIFxuICAgIHNzaEluc3RhbmNlLmFkZEtleShzc2hLZXkpO1xufTsiXX0= diff --git a/ts/npmci.env.ts b/ts/npmci.env.ts index 5aeb1ba..136360e 100644 --- a/ts/npmci.env.ts +++ b/ts/npmci.env.ts @@ -23,10 +23,7 @@ export let configStore = () => { } plugins.smartfile.memory.toFsSync( JSON.stringify(config), - { - fileName:"config.json", - filePath:paths.NpmciPackageRoot - } + paths.NpmciPackageConfig ); } diff --git a/ts/npmci.prepare.ts b/ts/npmci.prepare.ts index b4369db..6246d73 100644 --- a/ts/npmci.prepare.ts +++ b/ts/npmci.prepare.ts @@ -16,7 +16,7 @@ let npm = function(){ plugins.beautylog.error("no access token found! Exiting!"); process.exit(1); } - plugins.smartfile.memory.toFsSync(npmrcFileString,{fileName:".npmrc",filePath:"/root"}); + plugins.smartfile.memory.toFsSync(npmrcFileString,"/root/.npmrc"); done.resolve(); return done.promise; }; diff --git a/ts/npmci.ssh.ts b/ts/npmci.ssh.ts index fd068a5..f6a2a0d 100644 --- a/ts/npmci.ssh.ts +++ b/ts/npmci.ssh.ts @@ -14,9 +14,9 @@ export let evaluateSshkey = (sshkeyEnvVarArg) => { let resultArray = sshRegex.exec(sshkeyEnvVarArg); 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; - if(resultArray[2] && resultArray[2] != "undefined") sshKey.publicKeyBase64 = resultArray[2]; + if(resultArray[2] && resultArray[2] != "undefined") sshKey.pubKeyBase64 = resultArray[2]; let host:string; if(resultArray[3] && resultArray[3] != "undefined") sshKey.host = resultArray[1];