chef-deployment-monitor 0.4.0 → 0.5.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: 68502cb465233af659a319b5cfc4464326d4fc52
4
- data.tar.gz: 4124b52e7b7b5a4645da5de0bb194756248438bc
3
+ metadata.gz: 0731a018ef9602ffbd987a5a59499977836760ff
4
+ data.tar.gz: ee96cbe82fe737fbbe3b3afde1c6b9084ae3ccca
5
5
  SHA512:
6
- metadata.gz: fa259e5e5066f1b56d4da997831ececf06c32f48ac6ba5ce6860b824c48014c63850605f5b424ff0053dad49055ab10fdcfaca0047a947d0ce0e8568f47b5aec
7
- data.tar.gz: 29fea1a19eb422aa723c5133bb199a33e42b221873e7ea1fe4393b22c3299a623cf24de40d0a21bfc14fc37977e52203469a3c7139d3739311e9afcae58d8584
6
+ metadata.gz: 4c0c07a86616b4946200d24ad2dfd15f6d3cdee7b28fb81f3d73c7d2c17f1949e10026f6a01d2aebd54962a20b298e49b328662fa1f7bc1fad3386686bc5b6d2
7
+ data.tar.gz: 138a89a958dc736c317cc5429804e194765bf2db04eaa04e878498e7dd916a8282ddfd831ab8d86105b865e31e2fd4ee2eab2c470d26a3bc988e6812c2588bbe
@@ -29,6 +29,7 @@ class Chef
29
29
  %w(
30
30
  user_blacklist
31
31
  object_blacklist
32
+ org_blacklist
32
33
  mon_file
33
34
  log_dir
34
35
  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) || filter_object(data)
56
+ filter_user(data) || filter_action(data) || filter_object(data) || filter_org(data)
57
57
  end
58
58
 
59
59
  def filter_user(data)
@@ -66,6 +66,11 @@ class Chef
66
66
  object_blacklist && (data['object'] =~ object_blacklist)
67
67
  end
68
68
 
69
+ def filter_org(data)
70
+ org_blacklist = Monitor::Config[:org_blacklist]
71
+ org_blacklist && (data['org'] =~ org_blacklist)
72
+ end
73
+
69
74
  def filter_action(data)
70
75
  action_blacklist = Monitor::Config[:action_blacklist]
71
76
  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.4.0'
21
+ VERSION = '0.5.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.4.0
4
+ version: 0.5.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-10-19 00:00:00.000000000 Z
12
+ date: 2016-05-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: file-tail
@@ -124,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
124
124
  version: '0'
125
125
  requirements: []
126
126
  rubyforge_project:
127
- rubygems_version: 2.4.5.1
127
+ rubygems_version: 2.5.1
128
128
  signing_key:
129
129
  specification_version: 4
130
130
  summary: Chef Monitoring tool to monitor all changes made