Go modular

This commit is contained in:
PhilKunz External
2017-05-18 20:40:09 +00:00
committed by Phil Kunz
parent 6edd51c6e6
commit b6a85319b0
64 changed files with 454 additions and 316 deletions

View File

@@ -3,6 +3,13 @@ import * as plugins from './npmci.plugins'
let sshRegex = /^(.*)\|(.*)\|(.*)/
let sshInstance: plugins.smartssh.SshInstance
/**
* checks if not undefined
*/
let notUndefined = (stringArg: string) => {
return (stringArg && stringArg !== 'undefined' && stringArg !== '##')
}
/**
* checks for ENV vars in form of NPMCI_SSHKEY_* and deploys any found ones
*/
@@ -39,10 +46,3 @@ let evaluateSshEnv = async (sshkeyEnvVarArg) => {
sshInstance.addKey(sshKey)
return
}
/**
* checks if not undefined
*/
let notUndefined = (stringArg: string) => {
return (stringArg && stringArg !== 'undefined' && stringArg !== '##')
}