public
Fork of kennethkalmer/daemon-kit
Description: Daemon Kit aims to simplify creating Ruby daemons by providing a sound application skeleton (through a generator), task specific generators (jabber bot, etc) and robust environment management code.
Homepage: http://kennethkalmer.github.com
Clone URL: git://github.com/ripta/daemon-kit.git
name age message
file .gitignore Wed Jan 07 15:01:46 -0800 2009 Updated .gitignore [kennethkalmer]
file History.txt Wed Jan 07 23:27:05 -0800 2009 Version 0.1.0 Added ability to freeze the fram... [kennethkalmer]
file Manifest.txt Fri Jan 16 10:02:55 -0800 2009 Regenerate gemspec to update manifest and bump ... [ripta]
file PostInstall.txt Wed Jan 07 23:27:05 -0800 2009 Version 0.1.0 Added ability to freeze the fram... [kennethkalmer]
file README.textile Wed Jan 07 17:20:41 -0800 2009 Version bump, README love [kennethkalmer]
file Rakefile Wed Jan 07 23:27:05 -0800 2009 Version 0.1.0 Added ability to freeze the fram... [kennethkalmer]
file TODO.txt Wed Jan 07 16:54:17 -0800 2009 Non-evented Jabber kit is here! [kennethkalmer]
directory app_generators/ Wed Jan 07 23:27:05 -0800 2009 Version 0.1.0 Added ability to freeze the fram... [kennethkalmer]
directory bin/ Wed Jan 07 16:54:17 -0800 2009 Non-evented Jabber kit is here! [kennethkalmer]
file daemon-kit.gemspec Fri Jan 16 10:02:55 -0800 2009 Regenerate gemspec to update manifest and bump ... [ripta]
directory daemon_generators/ Wed Jan 07 16:54:17 -0800 2009 Non-evented Jabber kit is here! [kennethkalmer]
directory lib/ Fri Jan 16 10:02:55 -0800 2009 Regenerate gemspec to update manifest and bump ... [ripta]
directory rubygems_generators/ Wed Jan 07 00:43:54 -0800 2009 Slowly getting somewhere with a generator [kennethkalmer]
directory script/ Tue Jan 06 22:42:44 -0800 2009 Cleaned up newgem output [kennethkalmer]
directory spec/ Wed Jan 07 03:13:08 -0800 2009 Baby steps [kennethkalmer]
directory tasks/ Tue Jan 06 22:42:44 -0800 2009 Cleaned up newgem output [kennethkalmer]
directory test/ Wed Jan 07 23:27:05 -0800 2009 Version 0.1.0 Added ability to freeze the fram... [kennethkalmer]
README.textile

Daemon Kit

  • http://daemon-kit.rubyforge.org/ (coming soon)

Description

Daemon Kit aims to simplify creating Ruby daemons by providing a sound application skeleton (through a generator), task specific generators (jabber bot, etc) and robust environment management code.

Using simple built-in generators it is easy to created evented and non-evented daemons that perform a multitude of different tasks.

Supported generators:

  • Evented and non-evented Jabber Bot (coming next)
  • Evented and non-evented loops (coming soon)
  • Queue poller (SQS, AMQP, etc) (coming soon)

Features/Problems

  • Build it
  • Review TODO.txt

Synopsis

$ daemon-kit [/path/to/your/daemon] [options]

The above command generates a skeleton daemon environment for you to adapt.

$ daemon-kit [/path/to/your/daemon] -i jabber

Use the ‘jabber’ generator instead of the default one.

Generators

Currently only two generators exist, a ‘default’ generator and a ‘jabber’ generator.

The default generator creates a simple daemon with an infinite loop inside that you can adapt.

The jabber generator creates a simple daemon that leverages the xmpp4r-simple gem to process inbound messages. The daemon will manage the roster and other little tasks, leaving you to provide the hooks for processing messages, presence notifications and subscription request.

Requirements

  • Ruby 1.8.6
  • daemons 1.0.10
  • xmpp4r-simple 0.8.8 (if using the ‘jabber’ generator)
  • eventmachine 0.12.2 (if using any of the evented generators)
  • rspec 1.1.11 (for writing/running your specs)

Install

$ git clone git://github.com/kennethkalmer/daemon-kit.git $ rake gem $ gem install pkg/daemon-kit-X.X.X.gem

License

(The MIT License)

Copyright © 2009 Kenneth Kalmer (Internet Exchange CC, Clear Planet Information Solutions Pty Ltd)

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
‘Software’), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED ‘AS IS’, WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.