Sha256: 95a348ea3a515f889a88037481978d1e563ed0152997d9efc25a1bd2c884595b
Contents?: true
Size: 1 KB
Versions: 4
Compression:
Stored size: 1 KB
Contents
# Kryten Kryten Series 4000 Mechanoid is a modular task runner written in Ruby. ## Installation Add this line to your application's Gemfile: ```ruby gem 'kryten' ``` And then execute: $ bundle Or install it yourself as: $ gem install kryten ## Usage ```ruby require 'kryten' include Kryten # define work to be done in a class with a run method class Work include ThreadedTask def run log "working..." end end # The worker can run on it's own and responds to the interrupt signal. Work.new.start # loop run method in foreground Work.new.start_worker # loop run method in a thread # Two or more workers can be managed by the Supervisor tasks = [] tasks << FirstTask.new tasks << SecondTask.new Supervisor.start(tasks) ``` ## Contributing Bug reports and pull requests are welcome on GitHub at https://github.com/zsoltf/kryten ## License The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
kryten-0.3.1 | README.md |
kryten-0.3.0 | README.md |
kryten-0.2.1 | README.md |
kryten-0.2.0 | README.md |