README.md in koma-0.11.0 vs README.md in koma-0.12.0

- old
+ new

@@ -22,18 +22,26 @@ $ gem install koma ``` ## Usage +### Gather remote host inventory + If you login remote server via `ssh example.com`, you can execute: ```sh $ koma ssh example.com ``` And gather host inventory stdout like [this](stdout_sample.json). +### Gather local host inventory + +```sh +$ koma exec +``` + ### Gather host inventory from multiple hosts ```sh $ koma ssh example.com,example.jp { @@ -76,9 +84,32 @@ ```sh $ vagrant ssh-config | koma ssh --key cpu,kernel ``` +### Run command on remote hosts + +```sh +$ koma run-command example.com,example.jp uptime +{ + "example.com": { + "uptime": { + "exit_signal": null, + "exit_status": 0, + "stderr": "", + "stdout": " 00:18:10 up 337 days, 4:51, 1 user, load average: 0.08, 0.02, 0.01\n" + } + }, + "example.jp": { + "uptime": { + "exit_signal": null, + "exit_status": 0, + "stderr": "", + "stdout": " 00:10:09 up 182 days, 7:34, 1 user, load average: 0.07, 0.03, 0.01\n" + } + } +} +``` ## Host inventory keys ```sh $ koma keys