backup 4.1.3 → 4.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/backup/notifier/slack.rb +3 -7
- data/lib/backup/version.rb +1 -1
- data/templates/cli/notifiers/slack +3 -4
- 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: e110afb457f606859adec72aa58acf36f27b7c49
|
4
|
+
data.tar.gz: 3e8fc126423d5af081b4310de16be9658f90da96
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c355ccc2c69758e0585501d376835bd83edf8be3bd3e248278f87916825e674a891748e5483a4431d000463d6e870587d406578e9a01d2b245b34878afaa19e
|
7
|
+
data.tar.gz: 366d9fee95f762c6d9313a52f797f881727d70e0f8a231d47e65b94dc3a8f1d7d0aaf52475d7f38d1dcd03007e2872946f10784661bbac9b2ed8d31c8f1135f6
|
@@ -7,12 +7,8 @@ module Backup
|
|
7
7
|
class Slack < Base
|
8
8
|
|
9
9
|
##
|
10
|
-
# The
|
11
|
-
attr_accessor :
|
12
|
-
|
13
|
-
##
|
14
|
-
# The Integration Token
|
15
|
-
attr_accessor :token
|
10
|
+
# The incoming webhook url
|
11
|
+
attr_accessor :webhook_url
|
16
12
|
|
17
13
|
##
|
18
14
|
# The channel to send messages to
|
@@ -151,7 +147,7 @@ module Backup
|
|
151
147
|
end
|
152
148
|
|
153
149
|
def uri
|
154
|
-
@uri ||=
|
150
|
+
@uri ||= webhook_url
|
155
151
|
end
|
156
152
|
end
|
157
153
|
end
|
data/lib/backup/version.rb
CHANGED
@@ -6,11 +6,10 @@
|
|
6
6
|
slack.on_warning = true
|
7
7
|
slack.on_failure = true
|
8
8
|
|
9
|
-
# The
|
10
|
-
slack.
|
9
|
+
# The incoming webhook url
|
10
|
+
# https://hooks.slack.com/services/xxxxxxxx/xxxxxxxxx/xxxxxxxxxx
|
11
|
+
slack.webhook_url = 'xxxxxxxxxxxxxxxxxxxxxxxx'
|
11
12
|
|
12
|
-
# The integration token
|
13
|
-
slack.token = 'xxxxxxxxxxxxxxxxxxxxxxxx'
|
14
13
|
|
15
14
|
##
|
16
15
|
# Optional
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: backup
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.1.
|
4
|
+
version: 4.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael van Rooijen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-12-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|