Execute actions via jackal
Set action to execute within payload:
{
...
"data": {
"commander": {
"action": "toucher"
}
}
}
{
...
"data": {
"commander": {
"actions": [
"toucher",
"remover"
]
}
}
}
{
...
"data": {
"commander": {
"action": "toucher",
"actions": [
"remover"
]
}
}
}
{
...
"data": {
"commander": {
"action": {
"name": "custom_touch",
"arguments": "/tmp/my-custom-file"
}
}
}
}
Define the action within the configuration:
{
...
"config": {
"actions": {
"toucher": "touch /tmp/test-file",
"remover": "rm -f /tmp/test-file",
"custom_touch": "touch"
}
}
}
- Repository: https://github.com/carnviore-rb/jackal-commander
- IRC: Freenode @ #carnivore