event-reporting-handler 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8b8b1093b7a2635891eef96d1ebf225c4756e164
|
4
|
+
data.tar.gz: 7ad04c62d51fc21bf60b0ca3bb59e48213244a9b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0e3c8060f0b2821ff053111d38a7c34ca446ce911df6bf76bf411dae788d34041d939ce351cc2358d746b862c19418a5101378731c29f5389e221b1a73ede0d
|
7
|
+
data.tar.gz: 8efb048fb46ffbda573a68b402be8c0962cdd214941be270483b86941e4f3d0125c8f580de2f523a972e329eb9a0c76de991ce06be923b87dacf4a39f4e74bbd
|
@@ -15,8 +15,8 @@ module BloombergLP
|
|
15
15
|
config.ssl_verification = sentry_config['verify_ssl'] || true
|
16
16
|
config.dsn = sentry_config['dsn']
|
17
17
|
config.logger = ::Chef::Log
|
18
|
-
config.current_environment = node.chef_environment
|
19
|
-
config.environments = [node.chef_environment]
|
18
|
+
config.current_environment = @node.chef_environment
|
19
|
+
config.environments = [@node.chef_environment]
|
20
20
|
config.send_modules = Gem::Specification.respond_to?(:map)
|
21
21
|
end
|
22
22
|
Raven.logger.debug 'Raven ready to report errors'
|
@@ -29,7 +29,7 @@ module BloombergLP
|
|
29
29
|
end
|
30
30
|
|
31
31
|
# Called at the end a successful Chef run.
|
32
|
-
def run_completed(
|
32
|
+
def run_completed(node)
|
33
33
|
publish_event(:run_completed)
|
34
34
|
end
|
35
35
|
|
@@ -52,7 +52,7 @@ module BloombergLP
|
|
52
52
|
end
|
53
53
|
end
|
54
54
|
# Use the node name, not the FQDN
|
55
|
-
evt.server_name = node.name
|
55
|
+
evt.server_name = @node.name
|
56
56
|
Raven.send(evt)
|
57
57
|
evt.id
|
58
58
|
end
|