chef-irc-snitch 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  module Chef
2
2
  module IRC
3
3
  module Snitch
4
- VERSION = "0.0.3"
4
+ VERSION = "0.0.4"
5
5
  end
6
6
  end
7
7
  end
@@ -34,6 +34,7 @@ class IRCSnitch < Chef::Handler
34
34
  "public" => false
35
35
  })
36
36
  gist_id = JSON.parse(res.body)["gists"].first["repo"]
37
+ Chef::Log.info("Created a GitHub Gist @ https://gist.github.com/#{gist_id}")
37
38
  end
38
39
  rescue Timeout::Error
39
40
  Chef::Log.error("Timed out while attempting to create a GitHub Gist, retrying ...")
@@ -41,11 +42,9 @@ class IRCSnitch < Chef::Handler
41
42
  retry if max_attempts > 0
42
43
  end
43
44
 
44
- Chef::Log.info("Created a GitHub Gist @ https://gist.github.com/#{gist_id}")
45
-
46
45
  max_attempts = 2
47
46
  ip_address = (node.has_key? :ec2) ? node.ec2.public_ipv4 : node.ipaddress
48
- message = "Chef run failed on #{node.name} (#{ip_address}) : https://gist.github.com/#{gist_id}"
47
+ message = "Chef run failed on #{node.name} : #{ip_address} : #{node.roles.join(", ")} : https://gist.github.com/#{gist_id}"
49
48
 
50
49
  begin
51
50
  timeout(8) do
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: chef-irc-snitch
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.3
5
+ version: 0.0.4
6
6
  platform: ruby
7
7
  authors:
8
8
  - Sean Porter
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-06-02 00:00:00 +09:00
13
+ date: 2011-06-04 00:00:00 +09:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency