mirror of
https://github.com/easingthemes/ssh-deploy.git
synced 2024-11-19 08:08:05 +08:00
Compare commits
35 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
7e2c0f29d6 | ||
|
e9c43c6900 | ||
|
9ae3c340cb | ||
|
386c8766a0 | ||
|
130901534a | ||
|
8b977327bb | ||
|
880f3b6b88 | ||
|
ec4a00fe02 | ||
|
a04c641775 | ||
|
9483c83d88 | ||
|
e41d593e15 | ||
|
9ab3993555 | ||
|
07265c8c95 | ||
|
a27b8667de | ||
|
2b38f7bf7a | ||
|
cd3b869a28 | ||
|
191986574c | ||
|
d41b136666 | ||
|
1ac1bcb558 | ||
|
c14eb85faf | ||
|
2bc5e10d4d | ||
|
4f928a3efc | ||
|
aac4cbf0db | ||
|
4042d3876f | ||
|
68f9da66f0 | ||
|
073bd0b6f6 | ||
|
14eb503e62 | ||
|
a9e37f3cb5 | ||
|
ff615959b6 | ||
|
5c4b90e3f8 | ||
|
66b3ffb0f7 | ||
|
037d157977 | ||
|
e34308df6c | ||
|
ad838db71f | ||
|
7f1c0e0111 |
27
.github/workflows/build.yml
vendored
Normal file
27
.github/workflows/build.yml
vendored
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
name: Build
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ '**' ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ $default-branch ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [ubuntu-latest]
|
||||||
|
node-version: [14.x]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Use Node.js ${{ matrix.node-version }}
|
||||||
|
uses: actions/setup-node@v1
|
||||||
|
with:
|
||||||
|
node-version: ${{ matrix.node-version }}
|
||||||
|
- run: npm i
|
||||||
|
- run: npm run lint
|
||||||
|
- run: npm run build
|
33
.github/workflows/version-bump-publish.yml
vendored
Normal file
33
.github/workflows/version-bump-publish.yml
vendored
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
name: Release
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
tag:
|
||||||
|
description: '<newversion> | major | minor | patch'
|
||||||
|
required: true
|
||||||
|
default: 'patch'
|
||||||
|
jobs:
|
||||||
|
checkout:
|
||||||
|
name: checkout
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- run: |
|
||||||
|
git config user.name github-actions
|
||||||
|
git config user.email github-actions@github.com
|
||||||
|
- name: Setup NodeJS and run build
|
||||||
|
uses: actions/setup-node@v1
|
||||||
|
with:
|
||||||
|
node-version: 12
|
||||||
|
- run: |
|
||||||
|
npm ci
|
||||||
|
npm run lint
|
||||||
|
npm run build
|
||||||
|
- name: Setup version
|
||||||
|
if: ${{ github.event.inputs.tag != '' }}
|
||||||
|
run: |
|
||||||
|
npm version ${{ github.event.inputs.tag }}
|
||||||
|
git push
|
||||||
|
- name: Add tag
|
||||||
|
run: git tag -a v${{ github.event.inputs.tag }} -m "v${{ github.event.inputs.tag }}"
|
32
README.md
32
README.md
@@ -12,46 +12,54 @@ This action would usually follow a build/test action which leaves deployable cod
|
|||||||
|
|
||||||
Pass configuration with `env` vars
|
Pass configuration with `env` vars
|
||||||
|
|
||||||
1. `SSH_PRIVATE_KEY` [required]
|
##### 1. `SSH_PRIVATE_KEY` [required]
|
||||||
|
|
||||||
This should be the private key part of an ssh key pair.
|
Private key part of an SSH key pair.
|
||||||
The public key part should be added to the `authorized_keys` file on the server that receives the deployment.
|
The public key part should be added to the `authorized_keys` file on the server that receives the deployment.
|
||||||
|
|
||||||
The keys should be generated using the PEM format. You can us this command
|
More info for SSH keys: https://www.ssh.com/ssh/public-key-authentication
|
||||||
|
|
||||||
|
The keys should be generated using the PEM format. You can use this command
|
||||||
|
|
||||||
```
|
```
|
||||||
ssh-keygen -m PEM -t rsa -b 4096
|
ssh-keygen -m PEM -t rsa -b 4096
|
||||||
```
|
```
|
||||||
|
|
||||||
2. `REMOTE_HOST` [required]
|
##### 2. `REMOTE_HOST` [required]
|
||||||
|
|
||||||
eg: mydomain.com
|
eg: mydomain.com
|
||||||
|
|
||||||
3. `REMOTE_USER` [required]
|
##### 3. `REMOTE_USER` [required]
|
||||||
|
|
||||||
eg: myusername
|
eg: myusername
|
||||||
|
|
||||||
3. `REMOTE_PORT` (optional, default '22')
|
##### 4. `REMOTE_PORT` (optional, default '22')
|
||||||
|
|
||||||
eg: '59184'
|
eg: '59184'
|
||||||
|
|
||||||
2. `ARGS` (optional, default '-rltgoDzvO')
|
##### 5. `ARGS` (optional, default '-rltgoDzvO')
|
||||||
|
|
||||||
For any initial/required rsync flags, eg: `-avzr --delete`
|
For any initial/required rsync flags, eg: `-avzr --delete`
|
||||||
|
|
||||||
3. `SOURCE` (optional, default '')
|
##### 6. `SOURCE` (optional, default '')
|
||||||
|
|
||||||
The source directory, path relative to `$GITHUB_WORKSPACE` root, eg: `dist/`
|
The source directory, path relative to `$GITHUB_WORKSPACE` root, eg: `dist/`
|
||||||
|
|
||||||
4. `TARGET` (optional, default '/home/REMOTE_USER/')
|
##### 7. `TARGET` (optional, default '/home/REMOTE_USER/')
|
||||||
|
|
||||||
The target directory
|
The target directory
|
||||||
|
|
||||||
|
##### 8. `EXCLUDE` (optional, default '')
|
||||||
|
|
||||||
|
path to exclude separated by `,`, ie: `/dist/, /node_modules/`
|
||||||
|
|
||||||
# Usage
|
# Usage
|
||||||
|
|
||||||
|
!!! Please use latest version, Readme file is just an example, eg: ssh-deploy@v2.1.5
|
||||||
|
|
||||||
```
|
```
|
||||||
- name: Deploy to Staging server
|
- name: Deploy to Staging server
|
||||||
uses: easingthemes/ssh-deploy@v2.0.7
|
uses: easingthemes/ssh-deploy@v2.1.5
|
||||||
env:
|
env:
|
||||||
SSH_PRIVATE_KEY: ${{ secrets.SERVER_SSH_KEY }}
|
SSH_PRIVATE_KEY: ${{ secrets.SERVER_SSH_KEY }}
|
||||||
ARGS: "-rltgoDzvO"
|
ARGS: "-rltgoDzvO"
|
||||||
@@ -59,6 +67,7 @@ The target directory
|
|||||||
REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
|
REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
|
||||||
REMOTE_USER: ${{ secrets.REMOTE_USER }}
|
REMOTE_USER: ${{ secrets.REMOTE_USER }}
|
||||||
TARGET: ${{ secrets.REMOTE_TARGET }}
|
TARGET: ${{ secrets.REMOTE_TARGET }}
|
||||||
|
EXCLUDE: "/dist/, /node_modules/"
|
||||||
```
|
```
|
||||||
|
|
||||||
# Example usage in workflow
|
# Example usage in workflow
|
||||||
@@ -84,7 +93,7 @@ jobs:
|
|||||||
- name: Run build task
|
- name: Run build task
|
||||||
run: npm run build --if-present
|
run: npm run build --if-present
|
||||||
- name: Deploy to Server
|
- name: Deploy to Server
|
||||||
uses: easingthemes/ssh-deploy@2.1.1
|
uses: easingthemes/ssh-deploy@v2.1.5
|
||||||
env:
|
env:
|
||||||
SSH_PRIVATE_KEY: ${{ secrets.SERVER_SSH_KEY }}
|
SSH_PRIVATE_KEY: ${{ secrets.SERVER_SSH_KEY }}
|
||||||
ARGS: "-rltgoDzvO --delete"
|
ARGS: "-rltgoDzvO --delete"
|
||||||
@@ -92,6 +101,7 @@ jobs:
|
|||||||
REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
|
REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
|
||||||
REMOTE_USER: ${{ secrets.REMOTE_USER }}
|
REMOTE_USER: ${{ secrets.REMOTE_USER }}
|
||||||
TARGET: ${{ secrets.REMOTE_TARGET }}
|
TARGET: ${{ secrets.REMOTE_TARGET }}
|
||||||
|
EXCLUDE: "/dist/, /node_modules/"
|
||||||
```
|
```
|
||||||
|
|
||||||
## Disclaimer
|
## Disclaimer
|
||||||
|
@@ -23,6 +23,14 @@ inputs:
|
|||||||
description: "Target directory"
|
description: "Target directory"
|
||||||
required: false
|
required: false
|
||||||
default: "/home/REMOTE_USER/"
|
default: "/home/REMOTE_USER/"
|
||||||
|
ARGS:
|
||||||
|
description: "Arguments to pass to rsync"
|
||||||
|
required: false
|
||||||
|
default: "-rltgoDzvO"
|
||||||
|
EXCLUDE:
|
||||||
|
description: "An array of folder to exclude"
|
||||||
|
required: false
|
||||||
|
default: ""
|
||||||
outputs:
|
outputs:
|
||||||
status:
|
status:
|
||||||
description: "Status"
|
description: "Status"
|
||||||
|
40
dist/index.js
vendored
40
dist/index.js
vendored
@@ -551,6 +551,24 @@ module.exports = {
|
|||||||
|
|
||||||
module.exports = require("path");
|
module.exports = require("path");
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 659:
|
||||||
|
/***/ (function(module) {
|
||||||
|
|
||||||
|
const inputNames = ['REMOTE_HOST', 'REMOTE_USER', 'REMOTE_PORT', 'SSH_PRIVATE_KEY', 'DEPLOY_KEY_NAME', 'SOURCE', 'TARGET', 'ARGS', 'EXCLUDE'];
|
||||||
|
|
||||||
|
const inputs = {
|
||||||
|
GITHUB_WORKSPACE: process.env.GITHUB_WORKSPACE
|
||||||
|
};
|
||||||
|
// Get inputs from ENV or WITH workflow settings
|
||||||
|
inputNames.forEach((input) => {
|
||||||
|
inputs[input] = process.env[input] || process.env[`INPUT_${input}`];
|
||||||
|
});
|
||||||
|
|
||||||
|
module.exports = inputs;
|
||||||
|
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
/***/ 669:
|
/***/ 669:
|
||||||
@@ -571,9 +589,9 @@ const { addSshKey } = __webpack_require__(613);
|
|||||||
const {
|
const {
|
||||||
REMOTE_HOST, REMOTE_USER,
|
REMOTE_HOST, REMOTE_USER,
|
||||||
REMOTE_PORT, SSH_PRIVATE_KEY, DEPLOY_KEY_NAME,
|
REMOTE_PORT, SSH_PRIVATE_KEY, DEPLOY_KEY_NAME,
|
||||||
SOURCE, TARGET, ARGS,
|
SOURCE, TARGET, ARGS, EXCLUDE,
|
||||||
GITHUB_WORKSPACE
|
GITHUB_WORKSPACE
|
||||||
} = process.env;
|
} = __webpack_require__(659);
|
||||||
|
|
||||||
const defaultOptions = {
|
const defaultOptions = {
|
||||||
ssh: true,
|
ssh: true,
|
||||||
@@ -584,13 +602,14 @@ const defaultOptions = {
|
|||||||
console.log('[general] GITHUB_WORKSPACE: ', GITHUB_WORKSPACE);
|
console.log('[general] GITHUB_WORKSPACE: ', GITHUB_WORKSPACE);
|
||||||
|
|
||||||
const sshDeploy = (() => {
|
const sshDeploy = (() => {
|
||||||
const rsync = ({ privateKey, port, src, dest, args }) => {
|
const rsync = ({ privateKey, port, src, dest, args, exclude }) => {
|
||||||
console.log(`[Rsync] Starting Rsync Action: ${src} to ${dest}`);
|
console.log(`[Rsync] Starting Rsync Action: ${src} to ${dest}`);
|
||||||
|
if (exclude) console.log(`[Rsync] exluding folders ${exclude}`);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// RSYNC COMMAND
|
// RSYNC COMMAND
|
||||||
nodeRsync({
|
nodeRsync({
|
||||||
src, dest, args, privateKey, port, ...defaultOptions
|
src, dest, args, privateKey, port, excludeFirst: exclude, ...defaultOptions
|
||||||
}, (error, stdout, stderr, cmd) => {
|
}, (error, stdout, stderr, cmd) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
console.error('⚠️ [Rsync] error: ', error.message);
|
console.error('⚠️ [Rsync] error: ', error.message);
|
||||||
@@ -608,12 +627,12 @@ const sshDeploy = (() => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const init = ({ src, dest, args, host = 'localhost', port, username, privateKeyContent }) => {
|
const init = ({ src, dest, args, host = 'localhost', port, username, privateKeyContent, exclude = [] }) => {
|
||||||
validateRsync(() => {
|
validateRsync(() => {
|
||||||
const privateKey = addSshKey(privateKeyContent, DEPLOY_KEY_NAME || 'deploy_key');
|
const privateKey = addSshKey(privateKeyContent, DEPLOY_KEY_NAME || 'deploy_key');
|
||||||
const remoteDest = `${username}@${host}:${dest}`;
|
const remoteDest = `${username}@${host}:${dest}`;
|
||||||
|
|
||||||
rsync({ privateKey, port, src, dest: remoteDest, args });
|
rsync({ privateKey, port, src, dest: remoteDest, args, exclude });
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -626,13 +645,14 @@ const run = () => {
|
|||||||
validateInputs({ SSH_PRIVATE_KEY, REMOTE_HOST, REMOTE_USER });
|
validateInputs({ SSH_PRIVATE_KEY, REMOTE_HOST, REMOTE_USER });
|
||||||
|
|
||||||
sshDeploy.init({
|
sshDeploy.init({
|
||||||
src: `${GITHUB_WORKSPACE}/${SOURCE}` || '',
|
src: `${GITHUB_WORKSPACE}/${SOURCE || ''}`,
|
||||||
dest: TARGET || `/home/${REMOTE_USER}/`,
|
dest: TARGET || `/home/${REMOTE_USER}/`,
|
||||||
args: ARGS ? [ARGS] : ['-rltgoDzvO'],
|
args: ARGS ? [ARGS] : ['-rltgoDzvO'],
|
||||||
host: REMOTE_HOST,
|
host: REMOTE_HOST,
|
||||||
port: REMOTE_PORT || '22',
|
port: REMOTE_PORT || '22',
|
||||||
username: REMOTE_USER,
|
username: REMOTE_USER,
|
||||||
privateKeyContent: SSH_PRIVATE_KEY
|
privateKeyContent: SSH_PRIVATE_KEY,
|
||||||
|
exclude: (EXCLUDE || '').split(',').map((item) => item.trim()) // split by comma and trim whitespace
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -689,7 +709,7 @@ const validateInputs = (inputs) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (validInputs.length !== inputKeys.length) {
|
if (validInputs.length !== inputKeys.length) {
|
||||||
console.error(`⚠️ [INPUTS] Inputs not valid, aborting ...`);
|
console.error('⚠️ [INPUTS] Inputs not valid, aborting ...');
|
||||||
process.abort();
|
process.abort();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -697,7 +717,7 @@ const validateInputs = (inputs) => {
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
validateRsync,
|
validateRsync,
|
||||||
validateInputs
|
validateInputs
|
||||||
}
|
};
|
||||||
|
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
2070
package-lock.json
generated
2070
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "ssh-deploy",
|
"name": "ssh-deploy",
|
||||||
"version": "2.1.0",
|
"version": "2.1.7",
|
||||||
"description": "This GitHub Action deploys specific directory from `GITHUB_WORKSPACE` to a folder on a server via rsync over ssh.",
|
"description": "This GitHub Action deploys specific directory from `GITHUB_WORKSPACE` to a folder on a server via rsync over ssh.",
|
||||||
"main": "src/index.js",
|
"main": "src/index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
18
src/index.js
18
src/index.js
@@ -7,9 +7,9 @@ const { addSshKey } = require('./sshKey');
|
|||||||
const {
|
const {
|
||||||
REMOTE_HOST, REMOTE_USER,
|
REMOTE_HOST, REMOTE_USER,
|
||||||
REMOTE_PORT, SSH_PRIVATE_KEY, DEPLOY_KEY_NAME,
|
REMOTE_PORT, SSH_PRIVATE_KEY, DEPLOY_KEY_NAME,
|
||||||
SOURCE, TARGET, ARGS,
|
SOURCE, TARGET, ARGS, EXCLUDE,
|
||||||
GITHUB_WORKSPACE
|
GITHUB_WORKSPACE
|
||||||
} = process.env;
|
} = require('./inputs');
|
||||||
|
|
||||||
const defaultOptions = {
|
const defaultOptions = {
|
||||||
ssh: true,
|
ssh: true,
|
||||||
@@ -20,13 +20,14 @@ const defaultOptions = {
|
|||||||
console.log('[general] GITHUB_WORKSPACE: ', GITHUB_WORKSPACE);
|
console.log('[general] GITHUB_WORKSPACE: ', GITHUB_WORKSPACE);
|
||||||
|
|
||||||
const sshDeploy = (() => {
|
const sshDeploy = (() => {
|
||||||
const rsync = ({ privateKey, port, src, dest, args }) => {
|
const rsync = ({ privateKey, port, src, dest, args, exclude }) => {
|
||||||
console.log(`[Rsync] Starting Rsync Action: ${src} to ${dest}`);
|
console.log(`[Rsync] Starting Rsync Action: ${src} to ${dest}`);
|
||||||
|
if (exclude) console.log(`[Rsync] exluding folders ${exclude}`);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// RSYNC COMMAND
|
// RSYNC COMMAND
|
||||||
nodeRsync({
|
nodeRsync({
|
||||||
src, dest, args, privateKey, port, ...defaultOptions
|
src, dest, args, privateKey, port, excludeFirst: exclude, ...defaultOptions
|
||||||
}, (error, stdout, stderr, cmd) => {
|
}, (error, stdout, stderr, cmd) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
console.error('⚠️ [Rsync] error: ', error.message);
|
console.error('⚠️ [Rsync] error: ', error.message);
|
||||||
@@ -44,12 +45,12 @@ const sshDeploy = (() => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const init = ({ src, dest, args, host = 'localhost', port, username, privateKeyContent }) => {
|
const init = ({ src, dest, args, host = 'localhost', port, username, privateKeyContent, exclude = [] }) => {
|
||||||
validateRsync(() => {
|
validateRsync(() => {
|
||||||
const privateKey = addSshKey(privateKeyContent, DEPLOY_KEY_NAME || 'deploy_key');
|
const privateKey = addSshKey(privateKeyContent, DEPLOY_KEY_NAME || 'deploy_key');
|
||||||
const remoteDest = `${username}@${host}:${dest}`;
|
const remoteDest = `${username}@${host}:${dest}`;
|
||||||
|
|
||||||
rsync({ privateKey, port, src, dest: remoteDest, args });
|
rsync({ privateKey, port, src, dest: remoteDest, args, exclude });
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -62,13 +63,14 @@ const run = () => {
|
|||||||
validateInputs({ SSH_PRIVATE_KEY, REMOTE_HOST, REMOTE_USER });
|
validateInputs({ SSH_PRIVATE_KEY, REMOTE_HOST, REMOTE_USER });
|
||||||
|
|
||||||
sshDeploy.init({
|
sshDeploy.init({
|
||||||
src: `${GITHUB_WORKSPACE}/${SOURCE}` || '',
|
src: `${GITHUB_WORKSPACE}/${SOURCE || ''}`,
|
||||||
dest: TARGET || `/home/${REMOTE_USER}/`,
|
dest: TARGET || `/home/${REMOTE_USER}/`,
|
||||||
args: ARGS ? [ARGS] : ['-rltgoDzvO'],
|
args: ARGS ? [ARGS] : ['-rltgoDzvO'],
|
||||||
host: REMOTE_HOST,
|
host: REMOTE_HOST,
|
||||||
port: REMOTE_PORT || '22',
|
port: REMOTE_PORT || '22',
|
||||||
username: REMOTE_USER,
|
username: REMOTE_USER,
|
||||||
privateKeyContent: SSH_PRIVATE_KEY
|
privateKeyContent: SSH_PRIVATE_KEY,
|
||||||
|
exclude: (EXCLUDE || '').split(',').map((item) => item.trim()) // split by comma and trim whitespace
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
11
src/inputs.js
Normal file
11
src/inputs.js
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
const inputNames = ['REMOTE_HOST', 'REMOTE_USER', 'REMOTE_PORT', 'SSH_PRIVATE_KEY', 'DEPLOY_KEY_NAME', 'SOURCE', 'TARGET', 'ARGS', 'EXCLUDE'];
|
||||||
|
|
||||||
|
const inputs = {
|
||||||
|
GITHUB_WORKSPACE: process.env.GITHUB_WORKSPACE
|
||||||
|
};
|
||||||
|
// Get inputs from ENV or WITH workflow settings
|
||||||
|
inputNames.forEach((input) => {
|
||||||
|
inputs[input] = process.env[input] || process.env[`INPUT_${input}`];
|
||||||
|
});
|
||||||
|
|
||||||
|
module.exports = inputs;
|
@@ -35,7 +35,7 @@ const validateInputs = (inputs) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (validInputs.length !== inputKeys.length) {
|
if (validInputs.length !== inputKeys.length) {
|
||||||
console.error(`⚠️ [INPUTS] Inputs not valid, aborting ...`);
|
console.error('⚠️ [INPUTS] Inputs not valid, aborting ...');
|
||||||
process.abort();
|
process.abort();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -43,4 +43,4 @@ const validateInputs = (inputs) => {
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
validateRsync,
|
validateRsync,
|
||||||
validateInputs
|
validateInputs
|
||||||
}
|
};
|
||||||
|
Reference in New Issue
Block a user