chef-deployment-monitor 0.3.3 → 0.4.0

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: b0f8ae22457aaf26fe724ee0d549577b34067b46
4
- data.tar.gz: b6723be3edfe9ddfe0f5c8312b9ee8dc435691b2
3
+ metadata.gz: 68502cb465233af659a319b5cfc4464326d4fc52
4
+ data.tar.gz: 4124b52e7b7b5a4645da5de0bb194756248438bc
5
5
  SHA512:
6
- metadata.gz: 869ac489c848f38c8ba22ffa1e422036ae6af6a263df7abd3f3d9f2ea8719225f6ce131270f1e778c10c3db960b009774306200c58387361b4ae9af8d1dcd89c
7
- data.tar.gz: ede25f7564a238f1936f58a48ecaa7f01e8c8a08fe8de5026473655700790592f9c8b42a3a184cd8c7cb4ca9f701458c2bdd7821b3fb60f2bfdbb7e18585fc56
6
+ metadata.gz: fa259e5e5066f1b56d4da997831ececf06c32f48ac6ba5ce6860b824c48014c63850605f5b424ff0053dad49055ab10fdcfaca0047a947d0ce0e8568f47b5aec
7
+ data.tar.gz: 29fea1a19eb422aa723c5133bb199a33e42b221873e7ea1fe4393b22c3299a623cf24de40d0a21bfc14fc37977e52203469a3c7139d3739311e9afcae58d8584
@@ -28,6 +28,7 @@ class Chef
28
28
  default :action_blacklist, /GET/
29
29
  %w(
30
30
  user_blacklist
31
+ object_blacklist
31
32
  mon_file
32
33
  log_dir
33
34
  pid_dir
@@ -53,7 +53,7 @@ class Chef
53
53
  end
54
54
 
55
55
  def filter(data)
56
- filter_user(data) || filter_action(data)
56
+ filter_user(data) || filter_action(data) || filter_object(data)
57
57
  end
58
58
 
59
59
  def filter_user(data)
@@ -61,6 +61,11 @@ class Chef
61
61
  user_blacklist && (data['user'] =~ user_blacklist)
62
62
  end
63
63
 
64
+ def filter_object(data)
65
+ object_blacklist = Monitor::Config[:object_blacklist]
66
+ object_blacklist && (data['object'] =~ object_blacklist)
67
+ end
68
+
64
69
  def filter_action(data)
65
70
  action_blacklist = Monitor::Config[:action_blacklist]
66
71
  action_blacklist && (data['action'] =~ action_blacklist)
@@ -18,7 +18,7 @@
18
18
  class Chef
19
19
  class Deployment
20
20
  class Monitor
21
- VERSION = '0.3.3'
21
+ VERSION = '0.4.0'
22
22
  MAJOR, MINOR, TINY = VERSION.split('.')
23
23
  end
24
24
  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.3.3
4
+ version: 0.4.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: 2015-09-14 00:00:00.000000000 Z
12
+ date: 2015-10-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: file-tail
@@ -129,3 +129,4 @@ signing_key:
129
129
  specification_version: 4
130
130
  summary: Chef Monitoring tool to monitor all changes made
131
131
  test_files: []
132
+ has_rdoc: false