public
Description: Distributed Rails Objects
Homepage:
Clone URL: git://github.com/russ/distributed.git
russ (author)
Thu Sep 18 11:28:29 -0700 2008
commit  8fdabb441ee1ce068ae6a7a9d50ee74eaf6996dd
tree    105f36225ee293e492f75dd11cc1c11659cb56f3
parent  1212244307bded60eba87a51ebc28c88c8e1877d
name age message
file .gitignore Loading commit data...
file README.rdoc
file Rakefile
directory bin/
file init.rb
directory lib/
directory spec/
README.rdoc

Usage

Start the ring server daemon

        ./script/ring_server

Create a ActiveRecord model that knows how to be distributed

        class User < ActiveRecord::Base
                include Distributed::Distributable
        end

Use this object across the network

        user = Distributed::User.find_by_name('Shake')
        user.save!

Configuration

        Distributed::Config.development # Fakes interaction if true
        Distributed::Config.app_name # Applciation Namespace
        Distributed::Config.timeout

Tips

To increase the speed of the object loading require the model in an initailizer

        require 'user'