Sha256: b901efad6a48f3fc0c96d32709f4b64b08a6673b638c1dcfa551023c662b07c7
Contents?: true
Size: 571 Bytes
Versions: 3
Compression:
Stored size: 571 Bytes
Contents
#!/usr/local/bin/ruby require 'drb' def start_wiki( settings = {}, &automatic_agents ) $SETTINGS.merge! settings $MESSAGES = YAML.load( IO.readlines("#{$SETTINGS[:root_directory]}/views/messages.yaml").join ) wiki = Wiki.new( "#{$SETTINGS[:root_directory]}/content" ) view = View.new( wiki, $SETTINGS[:name] ) Thread.new( automatic_agents, wiki, view ) do |block, wiki, view| block.call( wiki, view ) end.priority = -2 DRb.start_service( 'druby://localhost:9001', view) DRb.thread.join $stderr.puts "Wiki started as DRb on druby://localhost:9001" end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
Soks-0.0.6 | lib/soks-drb.rb |
Soks-0.0.7 | lib/soks-drb.rb |
Soks-1.0.0 | lib/soks-drb.rb |