chef-deployment-monitor 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YWM1YmNlNWJhNjc3NGNmYWVmNDVmZDBmZDgyZDgwOWQ2MmIxNTI2Nw==
4
+ ZWE3YjZhYWE5MWI5OTQ0ZjQ4MmJlZmVhMTlkZTc3MzM4YzZiZWM1ZQ==
5
5
  data.tar.gz: !binary |-
6
- Y2FlNDY2ZTQ2YTJmNzZhMDNhYWNjYzAxM2JmZmY3ZTY2MGJmNGUyYg==
6
+ ZDRiYTBmNzlhYTJjMTE4MjYxOTc0MDE2OTc3MmQ2MDY0MzRkMjRlMw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NTEzM2E2YzRlNzQwZjJiMjNiYWIzNjRkOTVkOTI0ZWFjOTMzOGI5OTZhNTYy
10
- Mjk1ZWU0MGY4YzJkMTNjZDhjNDI2NzkyZDQ1OGRmNjMyNzdiYWMyNTJlMDUw
11
- MDRkN2IyMDNhZGRkYmFmN2FhNWE2NzFhNTZjZDVlZDdlZDRmYzc=
9
+ NzAzMWEzZTY5ZjBlZGM0YzdiN2QyZmQxNTM1MDk4ZTQzN2NiMzIwZmJlM2Q0
10
+ MGFjNmNlM2RjN2FkOTRlM2FmYTJmZTAxY2Q2NmJhMmQzZjRhMjkwZDFhMzc1
11
+ MmE0Y2YyMmZlNjc0YTUwMjNlZDRlYjlmYmZjOGE0MjI0ZTQ4NDM=
12
12
  data.tar.gz: !binary |-
13
- ZDE0NTAwNGExZjk4NzY2YmM3NTJmN2Q1NWQ1MDQwMmU3ZDM5MTBmODg2NzEz
14
- MGM2NDE2N2QxN2I1M2UxYjU3NTJjMDg1ZDczNmViMDBlNzcxNDA1YzhjZmVi
15
- MjQ3MjZjZDRhNDYzNmFmMDgzYTE4YjgwZTA4ZGU5ZDZlZjYzNTk=
13
+ YTlhNmFkYWRmOGQ0ZWJkZjZkY2VjOGQ5OTNlZjA0YzBkODY3YzMxYWRkNzQ1
14
+ MzEyOGJlNjlkMzFmZjMxMDZhNjM4NjkzYTc5ZTA2MGIzMzNkMmMxMzhiMTkz
15
+ YTY3ZTBiZDBhNTNiMjlhNTViYTA5NzlhM2Q5NTYwMDNmYTEwZjg=
data/README.md CHANGED
@@ -10,8 +10,6 @@ chefserver in a more basic environment and is responsible for the following task
10
10
 
11
11
  - Tail your NGINX log and record all POST/PUTS/DELETES
12
12
 
13
- Basically every change that's being made to chef is registered within RabbitMQ.
14
-
15
13
  #CONFIGURATION:
16
14
 
17
15
  In order to execute both tools, you will need the following configuration settings:
@@ -8,27 +8,13 @@ class Chef
8
8
  end
9
9
  end
10
10
 
11
- class RmqSink < Sink
12
- def initialize
13
- @conn = Bunny.new(hostname: Monitor::Config[:mq_server])
14
- @conn.start
15
-
16
- @ch = @conn.create_channel
17
- @q = @ch.queue(Monitor::Config[:mq_queue], durable: true)
18
- end
19
-
20
- def receive(data)
21
- @q.publish(data, persistent: true, content_type: 'application/json')
22
- end
23
- end
24
-
25
11
  class MarkerFileSink < Sink
26
12
  # will modify the marker file
27
13
  # last write data of marker file will be within 5 seconds
28
14
  # of last deployement
29
15
  def receive(data)
30
16
  File.open(Monitor::Config[:marker_file], 'w+') do |f|
31
- f.write(data['user'])
17
+ f.write(data.to_json)
32
18
  end
33
19
  end
34
20
  end
@@ -18,7 +18,7 @@
18
18
  class Chef
19
19
  class Deployment
20
20
  class Monitor
21
- VERSION = '0.2.0'
21
+ VERSION = '0.3.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.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sander Botman