chef-deployment-monitor 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +0 -1
- data/lib/chef_deployment_monitor/logmon.rb +10 -0
- data/lib/chef_deployment_monitor/version.rb +1 -1
- 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: 494471bb5924965b8ee06c671c4fe80e24159cd4
|
4
|
+
data.tar.gz: cce1c676217ffe08d95b87c0e35d5552415a2f42
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad8ac5c76228e6134a7b8cd1921892470eab1e3506104677a9ac1f9da8049d7577db245d851b984989bf2135343bec89b910a67c0f82e0c5663cd6a83b0365da
|
7
|
+
data.tar.gz: 0d9b90cf3b27e8a070b8ba42c5c16feb63444ccee806aacddeeecd4c6f51eda0680693a308b07155e46601e479486da8eb6dae9e85ca0af248fc612ece47a938
|
data/.travis.yml
CHANGED
@@ -16,6 +16,7 @@
|
|
16
16
|
# limitations under the License.
|
17
17
|
|
18
18
|
require 'date'
|
19
|
+
require 'digest'
|
19
20
|
|
20
21
|
class Chef
|
21
22
|
class Deployment
|
@@ -36,6 +37,7 @@ class Chef
|
|
36
37
|
data = format(data)
|
37
38
|
unless filter(data)
|
38
39
|
Monitor::Log.new(data.to_json, 'INFO')
|
40
|
+
data = digest(data)
|
39
41
|
sink.receive(data)
|
40
42
|
end
|
41
43
|
end
|
@@ -52,6 +54,14 @@ class Chef
|
|
52
54
|
data_dup
|
53
55
|
end
|
54
56
|
|
57
|
+
def digest(data)
|
58
|
+
md5 = Digest::MD5.new
|
59
|
+
md5.update data.to_s
|
60
|
+
data = data.dup
|
61
|
+
data['digest'] = md5.digest
|
62
|
+
data
|
63
|
+
end
|
64
|
+
|
55
65
|
def filter(data)
|
56
66
|
filter_user(data) || filter_action(data) || filter_object(data) || filter_org(data)
|
57
67
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chef-deployment-monitor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sander Botman
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-05-
|
12
|
+
date: 2016-05-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: file-tail
|