mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
add DRb::ExtServManager#uri=.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7228 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
37abc5eaa3
commit
8b9422f502
3 changed files with 10 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Tue Nov 9 00:36:26 2004 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
|
||||||
|
|
||||||
|
* lib/drb/extservm.rb: add DRb::ExtServManager#uri=.
|
||||||
|
[ruby-dev:24743]
|
||||||
|
|
||||||
Mon Nov 8 22:20:19 2004 Dave Thomas <dave@pragprog.com>
|
Mon Nov 8 22:20:19 2004 Dave Thomas <dave@pragprog.com>
|
||||||
|
|
||||||
* lib/rdoc/parsers/parse_rb.rb (RDoc::RubyParser::parse_class):
|
* lib/rdoc/parsers/parse_rb.rb (RDoc::RubyParser::parse_class):
|
||||||
|
|
|
@ -25,8 +25,9 @@ module DRb
|
||||||
@waiting = []
|
@waiting = []
|
||||||
@queue = Queue.new
|
@queue = Queue.new
|
||||||
@thread = invoke_thread
|
@thread = invoke_thread
|
||||||
|
@uri = nil
|
||||||
end
|
end
|
||||||
attr_reader :server
|
attr_accessor :uri
|
||||||
|
|
||||||
def service(name)
|
def service(name)
|
||||||
while true
|
while true
|
||||||
|
@ -84,7 +85,8 @@ module DRb
|
||||||
return if @servers.include?(name)
|
return if @servers.include?(name)
|
||||||
@servers[name] = false
|
@servers[name] = false
|
||||||
end
|
end
|
||||||
Process.detach(Process.spawn("#{command} #{DRb.uri} #{name}"))
|
uri = @uri || DRb.uri
|
||||||
|
Process.detach(Process.spawn("#{command} #{uri} #{name}"))
|
||||||
true
|
true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -23,6 +23,7 @@ class DRbService
|
||||||
add_service_command(nm)
|
add_service_command(nm)
|
||||||
end
|
end
|
||||||
@server = @@server = DRb::DRbServer.new(nil, @@manager, {})
|
@server = @@server = DRb::DRbServer.new(nil, @@manager, {})
|
||||||
|
@@manager.uri = @@server.uri
|
||||||
def self.manager
|
def self.manager
|
||||||
@@manager
|
@@manager
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue