chef-irc-snitch 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,19 @@
1
+ * Usage
2
+ ** Install
3
+
4
+ : sudo gem install chef-irc-snitch
5
+
6
+ ** Configure Chef to Use The Handler
7
+
8
+ Append the following to your Chef client configs ('/etc/chef/client.rb')
9
+
10
+ : # Notify admins via IRC when a Chef run fails
11
+ : require 'chef-irc-snitch'
12
+ :
13
+ : irc_uri = "irc://nick:password@irc.domain.com:6667/#admins"
14
+ : github_user = "foobar"
15
+ : github_token = "asKkwqofovX3shBmtMf8EWhDzSr7ouUb"
16
+ : enable_ssl = true
17
+ :
18
+ : irc_handler = IRCSnitch.new(irc_uri, github_user, github_token, enable_ssl)
19
+ : exception_handlers << irc_handler
@@ -48,7 +48,7 @@ class IRCSnitch < Chef::Handler
48
48
 
49
49
  begin
50
50
  timeout(8) do
51
- CarrierPigeon.send({:uri => @irc_uri, :message => message, :ssl => @ssl})
51
+ CarrierPigeon.send(:uri => @irc_uri, :message => message, :ssl => @ssl)
52
52
  Chef::Log.info("Informed chefs via IRC : #{message}")
53
53
  end
54
54
  rescue Timeout::Error
@@ -1,7 +1,7 @@
1
1
  module Chef
2
2
  module IRC
3
3
  module Snitch
4
- VERSION = "0.0.5"
4
+ VERSION = "0.0.6"
5
5
  end
6
6
  end
7
7
  end
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.5
5
+ version: 0.0.6
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-14 00:00:00 +09:00
13
+ date: 2011-06-15 00:00:00 +09:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -48,6 +48,7 @@ files:
48
48
  - .gitignore
49
49
  - Gemfile
50
50
  - MIT-LICENSE.txt
51
+ - README.org
51
52
  - Rakefile
52
53
  - chef-irc-snitch.gemspec
53
54
  - lib/chef-irc-snitch.rb