Smart Processes Management
Filesystem executor for Runnerty:
Through NPM
npm i @runnerty/executor-filesystemYou can also add modules to your project with runnerty-cli
npx runnerty-cli add @runnerty/executor-filesystemThis 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:
rty add @runnerty/executor-filesystemAdd in config.json:
{
"id": "filesystem_default",
"type": "@runnerty-executor-filesystem"
}Add in plan.json:
{
"id": "filesystem_default",
"path": "/etc/runnerty/*.log",
"operation": "stat"
}{
"id": "filesystem_default",
"path": ["/etc/runnerty/*.log", "/etc/runnerty/*.zip"],
"operation": "ls",
"options": {
"orderBy": { "attribute": ["size", "file"], "order": "desc" }
}
}| Operation | Description | Output |
|---|---|---|
| stat | ||
| ls | ||
| mkdir |
PROCESS_EXEC_MSG_OUTPUT: Array files/directories stats.PROCESS_EXEC_ERR_OUTPUT: Error output message.