An open API service indexing awesome lists of open source software.

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.

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