jackal-commander
所属分类:collect
开发工具:Ruby
文件大小:0KB
下载次数:0
上传日期:2015-09-22 14:01:12
上 传 者:
sh-1993
说明: 豺狼指挥官,,
(jackal-commander,,)
文件列表:
CHANGELOG.md (139, 2015-09-22)
CONTRIBUTING.md (559, 2015-09-22)
Gemfile (87, 2015-09-22)
LICENSE (581, 2015-09-22)
jackal-commander.gemspec (647, 2015-09-22)
lib/ (0, 2015-09-22)
lib/jackal-commander.rb (359, 2015-09-22)
lib/jackal-commander/ (0, 2015-09-22)
lib/jackal-commander/executor.rb (3578, 2015-09-22)
lib/jackal-commander/version.rb (113, 2015-09-22)
test/ (0, 2015-09-22)
test/specs/ (0, 2015-09-22)
test/specs/config/ (0, 2015-09-22)
test/specs/config/test.json (630, 2015-09-22)
test/specs/executor.rb (3139, 2015-09-22)
# Jackal Commander
Execute actions via jackal
## Usage
Set action to execute within payload:
### Single action
```json
{
...
"data": {
"commander": {
"action": "toucher"
}
}
}
```
### Multiple actions
```json
{
...
"data": {
"commander": {
"actions": [
"toucher",
"remover"
]
}
}
}
```
### Mixed actions
```json
{
...
"data": {
"commander": {
"action": "toucher",
"actions": [
"remover"
]
}
}
}
```
### With extra arguments
```json
{
...
"data": {
"commander": {
"action": {
"name": "custom_touch",
"arguments": "/tmp/my-custom-file"
}
}
}
}
```
## Configuration
Define the action within the configuration:
```json
{
...
"config": {
"actions": {
"toucher": "touch /tmp/test-file",
"remover": "rm -f /tmp/test-file",
"custom_touch": "touch"
}
}
}
```
## Info
* Repository: https://github.com/carnviore-rb/jackal-commander
* IRC: Freenode @ #carnivore
近期下载者:
相关文件:
收藏者: