mrsk 0.7.1 → 0.7.2
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 +3 -4
- data/lib/mrsk/commands/auditor.rb +1 -3
- data/lib/mrsk/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: 5d90c03e2bcea1e39e38d773fd79d4154f24ec3297c5e31d0240e23d25adc6af
|
4
|
+
data.tar.gz: 68aac28eaef8b0246a4cef80d18da9f37069af8740cde1dd7505ef7bad7df8f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d491ed1430092b12de3e3a4e765f8da11f4a68c62e86b280368a96389829e1fd0b0238ff11f4811f974dc5aee3e166a5cff9cc3e85ce3ad11e34e4d37def484
|
7
|
+
data.tar.gz: 6e876c4c838c8ca8bcd28f1aa465d97190f6580bcad9942d2c6149346163c1289df18903cdb129c34715a06927d5945dcd988751ec2da397cf6c313781eb0911
|
data/README.md
CHANGED
@@ -348,7 +348,7 @@ If you need separate env variables for different destinations, you can set them
|
|
348
348
|
|
349
349
|
### Using audit broadcasts
|
350
350
|
|
351
|
-
If you'd like to broadcast audits of deploys, rollbacks, etc to a chatroom or elsewhere, you can configure the `audit_broadcast_cmd` setting with the path to a bin file that
|
351
|
+
If you'd like to broadcast audits of deploys, rollbacks, etc to a chatroom or elsewhere, you can configure the `audit_broadcast_cmd` setting with the path to a bin file that will be passed the audit line as the first argument:
|
352
352
|
|
353
353
|
```yaml
|
354
354
|
audit_broadcast_cmd:
|
@@ -359,14 +359,13 @@ The broadcast command could look something like:
|
|
359
359
|
|
360
360
|
```bash
|
361
361
|
#!/usr/bin/env bash
|
362
|
-
|
363
|
-
curl -q -d content="[My app] ${REPLY}" https://3.basecamp.com/XXXXX/integrations/XXXXX/buckets/XXXXX/chats/XXXXX/lines
|
362
|
+
curl -q -d content="[My App] ${1}" https://3.basecamp.com/XXXXX/integrations/XXXXX/buckets/XXXXX/chats/XXXXX/lines
|
364
363
|
```
|
365
364
|
|
366
365
|
That'll post a line like follows to a preconfigured chatbot in Basecamp:
|
367
366
|
|
368
367
|
```
|
369
|
-
[My App] [
|
368
|
+
[My App] [dhh] Rolled back to version d264c4e92470ad1bd18590f04466787262f605de
|
370
369
|
```
|
371
370
|
|
372
371
|
### Using custom healthcheck path or port
|
@@ -11,9 +11,7 @@ class Mrsk::Commands::Auditor < Mrsk::Commands::Base
|
|
11
11
|
# Runs locally
|
12
12
|
def broadcast(line)
|
13
13
|
if broadcast_cmd = config.audit_broadcast_cmd
|
14
|
-
|
15
|
-
[ :echo, tagged_broadcast_line(line) ],
|
16
|
-
broadcast_cmd
|
14
|
+
[ broadcast_cmd, tagged_broadcast_line(line) ]
|
17
15
|
end
|
18
16
|
end
|
19
17
|
|
data/lib/mrsk/version.rb
CHANGED