Project

General

Profile

Wiki » History » Revision 2

Revision 1 (Marc Dequènes, 2012-01-21 22:03) → Revision 2/4 (Marc Dequènes, 2012-01-21 22:08)

h1. Presentation 

 The Spoolinger is a generic "spool":http://en.wikipedia.org/wiki/Spooling manager, watching for incoming files in a specific directory and scheduling their processing. 

 Features: 
   - scheduling based on concurrency and min/max age 
   - gathering of file data using file name and content regex to be used in pattern replacement 
   - cancel mode (with pattern replacement) 
   - running of an external processing command (with pattern replacement) 
   - "load check" via external command or Ruby plugin to allow processing depending on external conditions 
   - logging with ajustable verbosity to help debug problems 

 h1. Installation 

 Build Dependencies: 
 * ruby-setup 

 Runtime Dependencies: 
 * ruby-log4r 
 * ruby-daemons 
 * ruby-eventmachine 
 * ruby-activesupport 
 * librb-inotify-ruby 
 * kwalify 

 h2. for a real install in /usr/local 

 <pre> 
 ruby setup.rb config 
 ruby setup.rb setup 
 ruby setup.rb install 
 ruby setup.rb clean 
 </pre> 

 h2. for packagers 

 <pre> 
 ruby setup.rb config --installdirs=std 
 ruby setup.rb setup 
 ruby setup.rb install --prefix=debian/spoolinger 
 ruby setup.rb clean 
 </pre> 

 h2. for in-place tests 

 <pre> 
 ruby setup.rb config --bindir=bin --rbdir=lib --datadir=data --sysconfdir=conf --localstatedir=var --shebang=never 
 ruby setup.rb setup 
 </pre> 
 Do tests, and when finished: 
 <pre> 
 ruby setup.rb clean 
 </pre> 

 h1. Configuration 

 See [[Configuration]] and examples in source:examples.