sm 0.2.1 → 1.0.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/Gemfile.lock +1 -1
- data/README.md +6 -1
- data/lib/sm/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a7cebbf6da4dbbb01b8bf645b36663b2c284c166
|
4
|
+
data.tar.gz: aed762e9bfb00103a89032029b591d1c4755f325
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: af67bd6fa6bf21ce3592fd106d623e74eff76bc906ab8cd351e502c9d7b4ca5af394494fd0c82ff0ee4bebf04aae45b2e8a121ae9e9626e29dc55d359a4ea205
|
7
|
+
data.tar.gz: a7cfa2e89ff52c0111bd1e7591966b7f80f9f859fd64f4bc65ea9c0c5bc1c9fcc45bdc27bc3cf452f73d00b77c56290a522bc2a82073d78ed3b56864c40e9c60
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -24,7 +24,7 @@ Or install it yourself as:
|
|
24
24
|
Set the following environment variables:
|
25
25
|
`SLACK_WEBHOOK_URL` (required) - Get this by [creating an incoming webhook integration in your slack account](https://api.slack.com/incoming-webhooks)
|
26
26
|
`SLACKBOT_USERNAME` (optional) - The user name to send the message as. Defaults to 'slackbot'
|
27
|
-
`
|
27
|
+
`SLACK_MSG_ICON_EMOJI'` (optional) - The avatar emoji to use for the message. Defaults to ':ghost:'
|
28
28
|
|
29
29
|
```bash
|
30
30
|
post-slack-msg 'CHANNEL' 'YOUR MESSAGE'
|
@@ -32,6 +32,11 @@ post-slack-msg 'CHANNEL' 'YOUR MESSAGE'
|
|
32
32
|
Example:
|
33
33
|
|
34
34
|
post-slack-msg '#doughnuts' "I've got a dozen!"
|
35
|
+
|
36
|
+
|
37
|
+
Piping output from other programs as the slack message text:
|
38
|
+
|
39
|
+
{ echo My current processes:; ps; } | bundle exec post-slack-msg '#system-msgs'
|
35
40
|
```
|
36
41
|
|
37
42
|
## Development
|
data/lib/sm/version.rb
CHANGED