update to deno
This commit is contained in:
@@ -14,7 +14,7 @@ export let handleCli = async (argvArg: any) => {
|
||||
Deno.exit(1);
|
||||
}
|
||||
} else {
|
||||
logger.log('error', `>>npmci ssh ...<< please specify an action!`);
|
||||
logger.log('error', `>>szci ssh ...<< please specify an action!`);
|
||||
Deno.exit(1);
|
||||
}
|
||||
};
|
||||
@@ -27,12 +27,12 @@ const notUndefined = (stringArg: string) => {
|
||||
};
|
||||
|
||||
/**
|
||||
* checks for ENV vars in form of NPMCI_SSHKEY_* and deploys any found ones
|
||||
* checks for ENV vars in form of SZCI_SSHKEY_* and deploys any found ones
|
||||
*/
|
||||
export let prepare = async () => {
|
||||
sshInstance = new plugins.smartssh.SshInstance(); // init ssh instance
|
||||
plugins.smartobject.forEachMinimatch(Deno.env.toObject(), 'NPMCI_SSHKEY_*', evaluateSshEnv);
|
||||
if (!Deno.env.get("NPMTS_TEST")) {
|
||||
plugins.smartobject.forEachMinimatch(Deno.env.toObject(), 'SZCI_SSHKEY_*', evaluateSshEnv);
|
||||
if (!Deno.env.get("SZCI_TEST")) {
|
||||
sshInstance.writeToDisk();
|
||||
} else {
|
||||
logger.log('info', 'In test mode, so not storing SSH keys to disk!');
|
||||
|
||||
Reference in New Issue
Block a user