https://github.com/markbates/distribunaut
A framework agnostic port of the mack-distributed package.
https://github.com/markbates/distribunaut
Last synced: 11 months ago
JSON representation
A framework agnostic port of the mack-distributed package.
- Host: GitHub
- URL: https://github.com/markbates/distribunaut
- Owner: markbates
- License: mit
- Created: 2009-04-06T01:29:33.000Z (about 17 years ago)
- Default Branch: master
- Last Pushed: 2023-01-18T18:59:06.000Z (over 3 years ago)
- Last Synced: 2025-03-31T03:08:02.024Z (about 1 year ago)
- Language: Ruby
- Homepage: http://www.mackframework.com
- Size: 77.1 KB
- Stars: 16
- Watchers: 2
- Forks: 4
- Open Issues: 3
-
Metadata Files:
- Readme: README
- License: LICENSE
Awesome Lists containing this project
README
==Examples
===Example #1
# 'Server' application
require 'distribunaut'
configatron.distribunaut.app_name = :user_app
class User
include Distribunaut::Distributable
attr_accessor :username
def self.hi
'hello!!!'
end
def save
puts "Saving: #{self.inspect}"
end
end
DRb.thread.join
# 'Client' application
require 'distribunaut'
puts Distribunaut::Distributed::User.hi
User = Distribunaut::Distributed::User
puts User.hi
user = User.new
puts user.inspect
user.username = 'markbates'
puts user.inspect
user.save
# Saving: #
# hello!!!
# hello!!!
# #|#
# #|#
===Contributors
* Mark Bates
* Josh Schairbaum