chef-groveio-handler 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -13,8 +13,8 @@ Gem::Specification.new do |s|
13
13
  ## If your rubyforge_project name is different, then edit it and comment out
14
14
  ## the sub! line in the Rakefile
15
15
  s.name = 'chef-groveio-handler'
16
- s.version = '0.0.1'
17
- s.date = '2012-01-15'
16
+ s.version = '0.0.2'
17
+ s.date = '2012-04-07'
18
18
  s.rubyforge_project = 'chef-groveio-handler'
19
19
 
20
20
  ## Make sure your summary is short. The description may be as long
@@ -5,7 +5,7 @@ require 'net/https'
5
5
  require 'uri'
6
6
 
7
7
  class ChefGroveIOHandler < Chef::Handler
8
- VERSION = '0.0.1'
8
+ VERSION = '0.0.2'
9
9
 
10
10
  def initialize(url_hash)
11
11
  @url = "https://grove.io/api/notice/#{url_hash}/"
@@ -16,7 +16,7 @@ class ChefGroveIOHandler < Chef::Handler
16
16
 
17
17
  # build the message
18
18
  status = failed? ? "failed" : "succeeded"
19
- message = "Chef run on #{node} has #{status}."
19
+ message = "chef-client run on #{node[:fqdn]} has #{status}."
20
20
 
21
21
  # notify stdout and via log.error if we have a terminal
22
22
  unless STDOUT.tty?
@@ -27,7 +27,7 @@ class ChefGroveIOHandler < Chef::Handler
27
27
  http.use_ssl = true
28
28
 
29
29
  request = Net::HTTP::Post.new(uri.request_uri)
30
- request.set_form_data({"service" => "ChefReport", "message" => message})
30
+ request.set_form_data({"service" => "Chef", "message" => message})
31
31
 
32
32
  response = http.request(request)
33
33
  Chef::Log.info("Notified chefs via grove.io")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-groveio-handler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-01-15 00:00:00.000000000Z
12
+ date: 2012-04-07 00:00:00.000000000Z
13
13
  dependencies: []
14
14
  description: After a chef run the report handler can be used to notify a grove.io
15
15
  channel via the webhook.