chef-handler-slnky 0.1.3 → 0.2.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: 7fae3e419bfc6760e879bfad10a7786783ec452d
4
- data.tar.gz: 6c60de1bf66e5c1aac5e0bcf9013b0cafc77e057
3
+ metadata.gz: 8587545288be202e40fb3dc920668ea426e3cbc1
4
+ data.tar.gz: e6debdb7bcb844ef7893b1f8439608defa998d28
5
5
  SHA512:
6
- metadata.gz: 36a11c579fcc82dc97e20449df1975769593468b40355a4be915ebf47e6789ec3efe32f2f2f8b192cf998ec0334e2155ecda0403758265ded9803319234ff601
7
- data.tar.gz: 86d62a86807014f6ba7331a191d2808ee0c6fbb0cbbf6bb2aa1247e32ccd02a55622f29f3d423052a57836419698ac59a606751a4aa8c0dd3601f73ef9c60582
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
@@ -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)
@@ -1,7 +1,7 @@
1
1
  class Chef
2
2
  class Handler
3
3
  class Slnky
4
- VERSION = "0.1.3"
4
+ VERSION = "0.2.0"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-handler-slnky
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shawn Catanzarite