Go modular
This commit is contained in:
committed by
Phil Kunz
parent
6edd51c6e6
commit
b6a85319b0
@@ -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 !== '##')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user