1.0.2 • Published 5 years ago
@runnerty/executor-filesystem v1.0.2
Filesystem executor for Runnerty:
Installation:
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-filesystemConfiguration sample:
Add in config.json:
{
"id": "filesystem_default",
"type": "@runnerty-executor-filesystem"
}Plan sample:
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" }
}
}Operations:
| Operation | Description | Output |
|---|---|---|
| stat | ||
| ls | ||
| mkdir | ||
| mv | ||
| rm | ||
| touch | ||
| chown | ||
| chmod | ||
| symlink |
Results output
PROCESS_EXEC_MSG_OUTPUT: Array files/directories stats.PROCESS_EXEC_ERR_OUTPUT: Error output message.