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: 32e9440fdc8f06399a819f19b8aee99da4de05af
4
- data.tar.gz: 2695f1a86ac60276230edef0ae7c73eef44fecc5
3
+ metadata.gz: 8b8b1093b7a2635891eef96d1ebf225c4756e164
4
+ data.tar.gz: 7ad04c62d51fc21bf60b0ca3bb59e48213244a9b
5
5
  SHA512:
6
- metadata.gz: 7a1a2849d779a4e8f4995045f0a0661193990757c62f23337103aa76478bb13f3b711e33ccce515e507e30cf728bfc3ed5aa76471d67c34a4d7537063ec20f1f
7
- data.tar.gz: 4cf32e35c3ce33bf6504a2e68bce43d20ce8eed7a0f210b59d374a62ae60580e9d8330e89ff2b7316d22757190a8d5393a144ee856ecfc3a80323a31bbc82a40
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(_node)
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
@@ -4,6 +4,6 @@
4
4
  #
5
5
  module BloombergLP
6
6
  module EventReportingHandler
7
- VERSION = '0.1.8'
7
+ VERSION = '0.1.9'
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: event-reporting-handler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shahul Khajamohideen