chef-handler-slnky 0.1.3 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +4 -1
- data/lib/chef/handler/slnky.rb +2 -1
- data/lib/chef/handler/slnky/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8587545288be202e40fb3dc920668ea426e3cbc1
|
|
4
|
+
data.tar.gz: e6debdb7bcb844ef7893b1f8439608defa998d28
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fe8d28a5d1998fad19ba02b79f28aee88ef568e79ff24b495a986ee459ebade6228ec48256841c8e06581c294fc700c24ca05f578370f4b3ec1ce29c5cdc2cbd
|
|
7
|
+
data.tar.gz: e7a23d15e4875b8ee3e9027c48d9df05752bf6be404b84bcd543ec0bfa194da356bc540b1364d724fb7373e5f0e3b263c7d5177baf998af0417779b8218eceb2
|
data/README.md
CHANGED
|
@@ -41,10 +41,13 @@ Create a recipe with the following:
|
|
|
41
41
|
include_recipe 'chef_handler::default'
|
|
42
42
|
|
|
43
43
|
# Install the `chef-handler-slnky` RubyGem during the compile phase
|
|
44
|
+
# the server that it sends the message to is managed with:
|
|
45
|
+
# `node['slnky']['url']`
|
|
46
|
+
# set this in a recipe or attributes file to point the handler
|
|
47
|
+
# to the server
|
|
44
48
|
chef_gem "chef-handler-slnky" do
|
|
45
49
|
action :upgrade
|
|
46
50
|
end
|
|
47
|
-
node.set['slnky']['url'] = 'http://127.0.0.1:3000/'
|
|
48
51
|
|
|
49
52
|
# Then activate the handler with the `chef_handler` LWRP
|
|
50
53
|
chef_handler "Chef::Handler::SlnkyHandler" do
|
data/lib/chef/handler/slnky.rb
CHANGED
|
@@ -13,7 +13,8 @@ class Chef
|
|
|
13
13
|
name: event,
|
|
14
14
|
elapsed: run_status.elapsed_time,
|
|
15
15
|
exception: run_status.exception,
|
|
16
|
-
updated: run_status.updated_resources,
|
|
16
|
+
updated: run_status.updated_resources.count,
|
|
17
|
+
total: run_status.all_resources.count,
|
|
17
18
|
}
|
|
18
19
|
msg = ::Slnky::Message.new(data)
|
|
19
20
|
::Slnky.notify(msg, server)
|