Sha256: 98c48f3c51d656602ac3b98c7894199937de035dfe88461edd995684e5958833
Contents?: true
Size: 742 Bytes
Versions: 3
Compression:
Stored size: 742 Bytes
Contents
require 'drb/drb' require 'singleton' module Shhh module App module Password module Cache URI='druby://localhost:8787' class Server include Singleton def lookup(key) raise NoMethodError, 'not implemented' return 'tasty bisquits' end FRONT_OBJECT=self.instance def boot raise NoMethodError, 'not implemented' # The object that handles requests on the server $SAFE = 1 # disable eval() and friends DRb.start_service(URI, FRONT_OBJECT) # Wait for the drb server thread to finish before exiting. DRb.thread.join end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
shhh-1.6.3 | lib/shhh/app/password/cache/server.rb |
shhh-1.6.2 | lib/shhh/app/password/cache/server.rb |
shhh-1.6.1 | lib/shhh/app/password/cache/server.rb |