Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Redis persistence for ruote (a ruby workflow engine)
Ruby
branch: master

This branch is 2 commits ahead, 31 commits behind jmettraux:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
test
CHANGELOG.txt
CREDITS.txt
LICENSE.txt
README.rdoc
Rakefile
TODO.txt
ruote-redis.gemspec

README.rdoc

ruote-redis

Redis persistence for ruote (a Ruby workflow engine)

usage

The storage is instantiate by passing a redis-rb instance to the storage.

require 'redis' # gem install redis
require 'ruote' # gem install ruote
require 'ruote-redis' # gem install ruote-redis

engine = Ruote::Engine.new(
  Ruote::Worker.new(
    Ruote::Redis::Storage.new(
      ::Redis.new(:db => 14, :thread_safe => true), {})))

# ...

Passing an em-redis instance might work, but I haven't tried.

Tested with Redis 2.0.4 and 2.2.12 (redis-rb 2.1.1, and 2.2.2).

running tests

assuming you have

ruote/
ruote-redis/

start a redis server instance (port 6379) and then

  • unit tests :

get into ruote/ and do

ruby test/unit/storage.rb -- --redis
  • functional tests :

get into ruote/ and do

ruby test/functional/test.rb -- --redis

license

MIT

links

feedback

mailing list : groups.google.com/group/openwferu-users irc : irc.freenode.net #ruote

many thanks to

  • the Redis authors and the redis-rb authors

Something went wrong with that request. Please try again.