Runnerty module: scp executor
npm install @runnerty/executor-scpSmart Processes Management
[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url]
Requires sshpass tool to be installed in the SO.
By default, the executor use the port 22, it is possible to indicate a different port with the property "remotePort"
It is possible to use "remotePassword" instead off "identityFile"
Through NPM
``bash`
npm i @runnerty/executor-scp
You can also add modules to your project with [runnerty-cli]
`bash`
npx runnerty-cli add @runnerty/executor-scp
This command installs the module in your project, adds example configuration in your config.json and creates an example plan of use.
If you have installed [runnerty-cli] globally you can include the module with this command:
`bash`
rty add @runnerty/executor-scp
Add in [config.json]:
`json`
{
"id": "scp_default",
"type": "@runnerty-executor-scp"
}
Add in [plan.json]:
`json`
{
"id": "scp_default",
"identityFile": "mykey.pem",
"localFile": "originfile.txt",
"remoteFilePath": "/var/remote.txt",
"remoteHost": "my.host.com",
"remoteUser": "user"
}
`json``
{
"id": "scp_default",
"identityFile": "mykey.pem",
"localFile": "originfile.txt",
"remoteFilePath": "/var/remote.txt",
"remoteHost": "my.host.com",
"remoteUser": "user",
"remorePassword": "password"
}
[runnerty]: http://www.runnerty.io
[downloads-image]: https://img.shields.io/npm/dm/@runnerty/executor-scp.svg
[npm-url]: https://www.npmjs.com/package/@runnerty/executor-scp
[npm-image]: https://img.shields.io/npm/v/@runnerty/executor-scp.svg
[david-badge]: https://david-dm.org/runnerty/executor-scp.svg
[david-badge-url]: https://david-dm.org/runnerty/executor-scp
[config.json]: http://docs.runnerty.io/config/
[plan.json]: http://docs.runnerty.io/plan/
[runnerty-cli]: https://www.npmjs.com/package/runnerty-cli