chef-deployment-monitor 0.6.0 → 0.6.1.pre.beta

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: 494471bb5924965b8ee06c671c4fe80e24159cd4
4
- data.tar.gz: cce1c676217ffe08d95b87c0e35d5552415a2f42
3
+ metadata.gz: fad443c414ed84bae4bc5874ecd79606e34a7f78
4
+ data.tar.gz: 5e483a2fde8bdb2b3e2d428fb27e131b91aef0bd
5
5
  SHA512:
6
- metadata.gz: ad8ac5c76228e6134a7b8cd1921892470eab1e3506104677a9ac1f9da8049d7577db245d851b984989bf2135343bec89b910a67c0f82e0c5663cd6a83b0365da
7
- data.tar.gz: 0d9b90cf3b27e8a070b8ba42c5c16feb63444ccee806aacddeeecd4c6f51eda0680693a308b07155e46601e479486da8eb6dae9e85ca0af248fc612ece47a938
6
+ metadata.gz: 3588dfe0152a8dd8a596890855999554a7fa245873945707313be0c34362909d699e276b3f7a647a5d8f439c570ca750b1affd7e97800a6931b246e078a84cd4
7
+ data.tar.gz: 01e6a968077362ff5633ad91a917da436614390280c2245fe985195c75203858362cf177b82cd548d25e1b729168f526c161afc9163985ba25e16e74bd2de709
@@ -24,12 +24,9 @@ class Chef
24
24
  extend Mixlib::Config
25
25
  config_strict_mode true
26
26
 
27
+ default :blacklisted?, Proc.new do false end
27
28
  default :marker_file, '/tmp/last_chef_deployment'
28
- default :action_blacklist, /GET/
29
29
  %w(
30
- user_blacklist
31
- object_blacklist
32
- org_blacklist
33
30
  mon_file
34
31
  log_dir
35
32
  pid_dir
@@ -58,32 +58,12 @@ class Chef
58
58
  md5 = Digest::MD5.new
59
59
  md5.update data.to_s
60
60
  data = data.dup
61
- data['digest'] = md5.digest
61
+ data['digest'] = md5.hexdigest
62
62
  data
63
63
  end
64
64
 
65
65
  def filter(data)
66
- filter_user(data) || filter_action(data) || filter_object(data) || filter_org(data)
67
- end
68
-
69
- def filter_user(data)
70
- user_blacklist = Monitor::Config[:user_blacklist]
71
- user_blacklist && (data['user'] =~ user_blacklist)
72
- end
73
-
74
- def filter_object(data)
75
- object_blacklist = Monitor::Config[:object_blacklist]
76
- object_blacklist && (data['object'] =~ object_blacklist)
77
- end
78
-
79
- def filter_org(data)
80
- org_blacklist = Monitor::Config[:org_blacklist]
81
- org_blacklist && (data['org'] =~ org_blacklist)
82
- end
83
-
84
- def filter_action(data)
85
- action_blacklist = Monitor::Config[:action_blacklist]
86
- action_blacklist && (data['action'] =~ action_blacklist)
66
+ Monitor::Config[:blacklisted?].call(data)
87
67
  end
88
68
 
89
69
  def scan(line)
@@ -18,7 +18,7 @@
18
18
  class Chef
19
19
  class Deployment
20
20
  class Monitor
21
- VERSION = '0.6.0'
21
+ VERSION = '0.6.1-beta'
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.6.0
4
+ version: 0.6.1.pre.beta
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-27 00:00:00.000000000 Z
12
+ date: 2016-06-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: file-tail
@@ -119,9 +119,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
119
119
  version: '0'
120
120
  required_rubygems_version: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - ">="
122
+ - - ">"
123
123
  - !ruby/object:Gem::Version
124
- version: '0'
124
+ version: 1.3.1
125
125
  requirements: []
126
126
  rubyforge_project:
127
127
  rubygems_version: 2.5.1
@@ -129,4 +129,3 @@ 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