mirror of
https://github.com/easingthemes/ssh-deploy.git
synced 2024-11-13 22:38:04 +00:00
Removed console.log()
This commit is contained in:
parent
82ccbba7dc
commit
f09a8d0277
19
dist/index.js
vendored
19
dist/index.js
vendored
@ -481,7 +481,6 @@ const nodeCmd = __webpack_require__(428);
|
|||||||
const nodeRsync = __webpack_require__(250);
|
const nodeRsync = __webpack_require__(250);
|
||||||
|
|
||||||
const { REMOTE_HOST, REMOTE_USER, REMOTE_PORT, SSH_PRIVATE_KEY, DEPLOY_KEY_NAME, SOURCE, TARGET, ARGS, GITHUB_WORKSPACE, HOME } = process.env;
|
const { REMOTE_HOST, REMOTE_USER, REMOTE_PORT, SSH_PRIVATE_KEY, DEPLOY_KEY_NAME, SOURCE, TARGET, ARGS, GITHUB_WORKSPACE, HOME } = process.env;
|
||||||
console.log('GITHUB_WORKSPACE', GITHUB_WORKSPACE);
|
|
||||||
|
|
||||||
const sshDeploy = (() => {
|
const sshDeploy = (() => {
|
||||||
const rsync = ({ privateKey, port, src, dest, args }) => {
|
const rsync = ({ privateKey, port, src, dest, args }) => {
|
||||||
@ -504,14 +503,14 @@ const sshDeploy = (() => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const init = ({
|
const init = ({
|
||||||
src,
|
src,
|
||||||
dest,
|
dest,
|
||||||
args,
|
args,
|
||||||
host = 'localhost',
|
host = 'localhost',
|
||||||
username,
|
username,
|
||||||
privateKeyContent,
|
privateKeyContent,
|
||||||
port
|
port
|
||||||
}) => {
|
}) => {
|
||||||
validateRsync(() => {
|
validateRsync(() => {
|
||||||
const privateKey = addSshKey(privateKeyContent, DEPLOY_KEY_NAME ||'deploy_key');
|
const privateKey = addSshKey(privateKeyContent, DEPLOY_KEY_NAME ||'deploy_key');
|
||||||
|
|
||||||
@ -605,7 +604,7 @@ const validateInputs = (inputs) => {
|
|||||||
return input;
|
return input;
|
||||||
});
|
});
|
||||||
|
|
||||||
if (validInputs.length !== inputs.length) {
|
if (validInputs.length !== Object.keys(inputs).length) {
|
||||||
process.abort();
|
process.abort();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
19
src/index.js
19
src/index.js
@ -6,7 +6,6 @@ const nodeCmd = require('node-cmd');
|
|||||||
const nodeRsync = require('rsyncwrapper');
|
const nodeRsync = require('rsyncwrapper');
|
||||||
|
|
||||||
const { REMOTE_HOST, REMOTE_USER, REMOTE_PORT, SSH_PRIVATE_KEY, DEPLOY_KEY_NAME, SOURCE, TARGET, ARGS, GITHUB_WORKSPACE, HOME } = process.env;
|
const { REMOTE_HOST, REMOTE_USER, REMOTE_PORT, SSH_PRIVATE_KEY, DEPLOY_KEY_NAME, SOURCE, TARGET, ARGS, GITHUB_WORKSPACE, HOME } = process.env;
|
||||||
console.log('GITHUB_WORKSPACE', GITHUB_WORKSPACE);
|
|
||||||
|
|
||||||
const sshDeploy = (() => {
|
const sshDeploy = (() => {
|
||||||
const rsync = ({ privateKey, port, src, dest, args }) => {
|
const rsync = ({ privateKey, port, src, dest, args }) => {
|
||||||
@ -29,14 +28,14 @@ const sshDeploy = (() => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const init = ({
|
const init = ({
|
||||||
src,
|
src,
|
||||||
dest,
|
dest,
|
||||||
args,
|
args,
|
||||||
host = 'localhost',
|
host = 'localhost',
|
||||||
username,
|
username,
|
||||||
privateKeyContent,
|
privateKeyContent,
|
||||||
port
|
port
|
||||||
}) => {
|
}) => {
|
||||||
validateRsync(() => {
|
validateRsync(() => {
|
||||||
const privateKey = addSshKey(privateKeyContent, DEPLOY_KEY_NAME ||'deploy_key');
|
const privateKey = addSshKey(privateKeyContent, DEPLOY_KEY_NAME ||'deploy_key');
|
||||||
|
|
||||||
@ -130,7 +129,7 @@ const validateInputs = (inputs) => {
|
|||||||
return input;
|
return input;
|
||||||
});
|
});
|
||||||
|
|
||||||
if (validInputs.length !== inputs.length) {
|
if (validInputs.length !== Object.keys(inputs).length) {
|
||||||
process.abort();
|
process.abort();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user