herd-rb 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +14 -1
- data/lib/herd/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ded7f78ffd316333cc6e7177d7ec84ad9ac91ec6cd9b10a9b3e55c7851fa6e22
|
|
4
|
+
data.tar.gz: fb2aed4ff5ae882238b6a38905d0685af26a03d11149ae3e1cfe2d4846287e08
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ccaa31336a819b2e845f0a713696303900a049f764d5eb7b1233e554f15fcf497a2d74109a2bf293e3d309a82bc711ad07cd9d38acfac18811f32e9c29869250
|
|
7
|
+
data.tar.gz: 1088e0d0613804db1ef7a1c2f098bdc63bc01aadf391ab4e712019f65461f4fc8d10ba65d84fd556f6065816c41213e7b5b6aed54b1db29028a2aa1555521d87
|
data/README.md
CHANGED
|
@@ -11,7 +11,7 @@ Fast host configuration tool.
|
|
|
11
11
|
* [x] Copy dirs
|
|
12
12
|
* [ ] Compare with Rsync
|
|
13
13
|
* [x] Crontab
|
|
14
|
-
* [
|
|
14
|
+
* [x] Log all commands for all hosts
|
|
15
15
|
* [ ] Add user to group
|
|
16
16
|
|
|
17
17
|
## Installation
|
|
@@ -144,6 +144,19 @@ end
|
|
|
144
144
|
crontab("* * * * * /some-script.sh")
|
|
145
145
|
```
|
|
146
146
|
|
|
147
|
+
### Logs
|
|
148
|
+
Herd logs all commands, outputs and errors into the `log/<host>_<port>_<user>/<timestamp>.json` files:
|
|
149
|
+
|
|
150
|
+
```json
|
|
151
|
+
{
|
|
152
|
+
{"vars":{"alias":"alpha001","port":22,"host":"tesla.com","user":"elon"}},
|
|
153
|
+
{"timestamp":"2025-11-09 18:10:21.134","command":"test -a /home/elon/.herd-version; echo $?"},
|
|
154
|
+
{"timestamp":"2025-11-09 18:10:21.395","command":"test -a /home/elon/.herd-version; echo $?","output":"4\r\n","time":0.261358},
|
|
155
|
+
{"timestamp":"2025-11-09 18:10:22.013","command":"cat /home/home/.herd-version"},
|
|
156
|
+
{"timestamp":"2025-11-09 18:10:22.314","command":"cat /home/home/.herd-version","output":"4\r\n","time":0.301}
|
|
157
|
+
}
|
|
158
|
+
```
|
|
159
|
+
|
|
147
160
|
## Development
|
|
148
161
|
|
|
149
162
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
data/lib/herd/version.rb
CHANGED