genesis_collector 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/chef/handler/genesis.rb +6 -0
- data/lib/genesis_collector/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b276533f13940e9830585a05a66f3dc183a0cc7
|
4
|
+
data.tar.gz: bf2cf4a95d6f7c9d7eed20637453e2cdf8b8f095
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 48bf1a48bcbdd5a4386f8efaa742d03a2f5b9c61a8f8b0572a1c62f612a7afbb9ae9c2bd8434ea0cc0a21dbce37e258c19dd9f93b7c0099cc71893db4a8dd14d
|
7
|
+
data.tar.gz: 4950a160d525c905dc2c0d4ec71938c3620ceada148f561bc01e614bfdac19b5dce4bfbdd7f1f4478266fd23283a754057ed87d8293aa0fb95ab0252c7ffd115
|
data/lib/chef/handler/genesis.rb
CHANGED
@@ -17,11 +17,17 @@ class Chef
|
|
17
17
|
if defined?(Bugsnag)
|
18
18
|
Bugsnag.configure do |config|
|
19
19
|
config.api_key = @config.delete('bugsnag_api_key')
|
20
|
+
config.app_version = GenesisCollector::VERSION
|
20
21
|
end
|
21
22
|
end
|
22
23
|
end
|
23
24
|
|
24
25
|
def report
|
26
|
+
if defined?(Bugsnag)
|
27
|
+
Bugsnag.configure do |config|
|
28
|
+
config.release_stage = run_context.node.chef_environment
|
29
|
+
end
|
30
|
+
end
|
25
31
|
prepare_report
|
26
32
|
send_report
|
27
33
|
end
|