chef-irc-snitch 0.0.5 → 0.0.6
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.
- data/README.org +19 -0
- data/lib/chef-irc-snitch.rb +1 -1
- data/lib/chef-irc-snitch/version.rb +1 -1
- metadata +3 -2
data/README.org
ADDED
@@ -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
|
data/lib/chef-irc-snitch.rb
CHANGED
@@ -48,7 +48,7 @@ class IRCSnitch < Chef::Handler
|
|
48
48
|
|
49
49
|
begin
|
50
50
|
timeout(8) do
|
51
|
-
CarrierPigeon.send(
|
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
|
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
|
+
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-
|
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
|