зеркало из https://github.com/github/ruby.git
* lib/drb/extserv.rb: remove duplicate code with sample direcotry.
contributed from @vipulnsward. [fix GH-679] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46901 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
acd7bd079e
Коммит
86b38466df
|
@ -1,3 +1,8 @@
|
|||
Wed Jul 23 04:04:38 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
|
||||
|
||||
* lib/drb/extserv.rb: remove duplicate code with sample direcotry.
|
||||
contributed from @vipulnsward. [fix GH-679]
|
||||
|
||||
Tue Jul 22 12:56:24 2014 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* string.c (rb_str_count): fix wrong single-byte optimization.
|
||||
|
|
|
@ -41,33 +41,3 @@ module DRb
|
|||
end
|
||||
end
|
||||
end
|
||||
|
||||
# :stopdoc:
|
||||
|
||||
if __FILE__ == $0
|
||||
class Foo
|
||||
include DRbUndumped
|
||||
|
||||
def initialize(str)
|
||||
@str = str
|
||||
end
|
||||
|
||||
def hello(it)
|
||||
"#{it}: #{self}"
|
||||
end
|
||||
|
||||
def to_s
|
||||
@str
|
||||
end
|
||||
end
|
||||
|
||||
cmd = ARGV.shift
|
||||
case cmd
|
||||
when 'itest1', 'itest2'
|
||||
front = Foo.new(cmd)
|
||||
manager = DRb::DRbServer.new(nil, front)
|
||||
es = DRb::ExtServ.new(ARGV.shift, ARGV.shift, manager)
|
||||
es.server.thread.join
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче