ALTerator README
================

  Alterator - a set of ruby modules for writing backends for
  ALT Linux alterator framework.


Requirements
------------

  * Ruby 1.8


Install
-------

  De-compress archive and enter its top directory.
  Then type:

   ($ su)
    # ruby setup.rb

  These simple step installs this program under the default
  location of Ruby libraries.  You can also install files into
  your favorite directory by supplying setup.rb some options.
  Try "ruby setup.rb --help".


Usage
-----

  require 'alterator/backend3'

  back = ALTerator::Backend3.new

  back.on_message do |msg|
    case msg[:action]
    when "list"
      puts '( ("first") ("second") )'
    when "write"
      f = File.new("/tmp/backend-out")
      f.puts("param = #{msg[:param]}")
      puts "()"
    end
  end

  back.message_loop


License
-------

  This module is distributed under the terms of the GNU General
  Public License version 2 or any later version.


Sir Raorn <raorn@altlinux.ru>
