event-reporting-handler 0.1.5 → 0.1.6

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: 6d95348df895d7a4693d0f3dfe97077d906e6196
4
- data.tar.gz: e413ed205ccec3bcf7f51dc36bddb55418d83381
3
+ metadata.gz: d57c6634c36b5d40fa1e21b726e5f00e3e5aae11
4
+ data.tar.gz: fa4c5d5698fb2814c377b683393350acd1f9c94a
5
5
  SHA512:
6
- metadata.gz: 227760562bcdfababd771548011c2fbeeedd26e012b893c7fe4e0756dcc5e08e1da57ca0c5b27793ab680daa1653cbd2f588dc6e207a775a6513fe30b3502afe
7
- data.tar.gz: 3a6db95edf09a76c9198f268d1cc27abb2d05743cb63ed52e2cf19702e937df50d7137a45b18f53d113f823657f7398e1f3e68854e7911c3478b25eacb77d205
6
+ metadata.gz: 83d812aaffb2999513897c2c4940e9cf7ae8ee25ee0f9154bb39dcde06d1ca896d7a64970f45b51d9cd05b5f92a1b309a64987b87959d2459125cbfc60d372e4
7
+ data.tar.gz: 15b0e6534484685038973f29f84e181d35d3675d3c6b05b4fc6d7ffd7f8b66179b6e869d225aaa863358052d25c551f1553410ae0d50b4a54a06cdab0f3b521a
data/Gemfile CHANGED
@@ -1,3 +1,5 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
+ gem 'chef', '~> 12.6'
4
+
3
5
  gemspec
@@ -22,4 +22,6 @@ Gem::Specification.new do |spec|
22
22
  spec.add_development_dependency "bundler", "~> 1.10"
23
23
  spec.add_development_dependency "rake", "~> 10.0"
24
24
  spec.add_development_dependency "rspec"
25
+
26
+ spec.add_runtime_dependency 'raven-sentry', '~> 0.15.2'
25
27
  end
@@ -39,7 +39,6 @@ module BloombergLP
39
39
  def run_failed(exception)
40
40
  sentry_event_id = report_to_sentry(exception)
41
41
  publish_event(:run_failed, {sentry_event_id: sentry_event_id})
42
-
43
42
  end
44
43
 
45
44
  private
@@ -8,7 +8,6 @@ require 'chef/handler'
8
8
  module BloombergLP
9
9
  module EventReportingHandler
10
10
  class StartHandler < Chef::Handler
11
- attr_reader :http_url
12
11
 
13
12
  def initialize(http_url='',sentry_config={})
14
13
  @http_url = http_url
@@ -16,8 +15,8 @@ module BloombergLP
16
15
  end
17
16
 
18
17
  def report
19
- Chef::Log.debug("Running start handler with http_url: #{http_url} and sentry_config: #{sentry_config} ")
20
- http_event_reporter = HttpEventReporter.new(http_url,sentry_config,@run_status)
18
+ Chef::Log.debug("Running start handler with http_url: #{@http_url} and sentry_config: #{@sentry_config} ")
19
+ http_event_reporter = HttpEventReporter.new(@http_url,@sentry_config,@run_status)
21
20
  @run_status.events.register(http_event_reporter)
22
21
  http_event_reporter.run_started(@run_status)
23
22
  end
@@ -4,6 +4,6 @@
4
4
  #
5
5
  module BloombergLP
6
6
  module EventReportingHandler
7
- VERSION = "0.1.5"
7
+ VERSION = "0.1.6"
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.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shahul Khajamohideen
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: raven-sentry
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 0.15.2
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 0.15.2
55
69
  description: Chef handler to send events to http url. Also sends chef run failures
56
70
  to sentry
57
71
  email: