systemd_mon 0.0.2 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -3
- data/lib/systemd_mon/notifiers/slack.rb +2 -3
- data/lib/systemd_mon/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a7ad17272b7fced034b797eda9344a439359dbdb
|
4
|
+
data.tar.gz: b1f884f5faca5be9d1d6eeda894deee6e9892c5f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6899ac03e5b7ab0d8d4b61f9df65e8b2977ccb7532550c407dc37c924965f37d85ba65174c134483fb30be8c32c49020b24cd7995e310e8649315a6720848640
|
7
|
+
data.tar.gz: 6b733a9f3d5db422763374628b98f1724ac2ae370a320b1f99f28673cdb7f1744b5aaa9e74bb351535426ea54cbe11ec9af19e904854423eaf6d6abd61420685
|
data/README.md
CHANGED
@@ -12,7 +12,7 @@ It works by subscribing to DBus notifications from Systemd. This means that ther
|
|
12
12
|
* Ruby > 1.9.3
|
13
13
|
* Systemd (v204 was used in development)
|
14
14
|
* `mail` gem (if email notifier is used)
|
15
|
-
* `slack-notifier` gem (if slack notifier is used)
|
15
|
+
* `slack-notifier` gem > 1.0 (if slack notifier is used)
|
16
16
|
|
17
17
|
## Installation
|
18
18
|
|
@@ -41,8 +41,7 @@ notifiers:
|
|
41
41
|
authentication: "plain"
|
42
42
|
enable_starttls_auto: true
|
43
43
|
slack:
|
44
|
-
|
45
|
-
token: supersecr3ttoken
|
44
|
+
webhook_url: https://hooks.slack.com/services/super/secret/tokenthings
|
46
45
|
channel: mychannel
|
47
46
|
username: doge
|
48
47
|
icon_emoji: ":computer"
|
@@ -4,7 +4,7 @@ require 'systemd_mon/notifiers/base'
|
|
4
4
|
begin
|
5
5
|
require 'slack-notifier'
|
6
6
|
rescue LoadError
|
7
|
-
raise SystemdMon::NotifierDependencyError, "The 'slack-notifier' gem is required by the slack notifier"
|
7
|
+
raise SystemdMon::NotifierDependencyError, "The 'slack-notifier' gem (> 1.0) is required by the slack notifier"
|
8
8
|
end
|
9
9
|
|
10
10
|
module SystemdMon::Notifiers
|
@@ -12,8 +12,7 @@ module SystemdMon::Notifiers
|
|
12
12
|
def initialize(*)
|
13
13
|
super
|
14
14
|
self.notifier = ::Slack::Notifier.new(
|
15
|
-
options.fetch('
|
16
|
-
options.fetch('token'),
|
15
|
+
options.fetch('webhook_url'),
|
17
16
|
channel: options['channel'],
|
18
17
|
username: options['username'],
|
19
18
|
icon_emoji: options['icon_emoji'],
|
data/lib/systemd_mon/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: systemd_mon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jon Cairns
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-03-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ruby-dbus
|