Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/AnonR/anonr.TX.../opt/alt/ruby27/share/ruby/drb
File: extserv.rb
# frozen_string_literal: false
[0] Fix | Delete
=begin
[1] Fix | Delete
external service
[2] Fix | Delete
Copyright (c) 2000,2002 Masatoshi SEKI
[3] Fix | Delete
=end
[4] Fix | Delete
[5] Fix | Delete
require_relative 'drb'
[6] Fix | Delete
require 'monitor'
[7] Fix | Delete
[8] Fix | Delete
module DRb
[9] Fix | Delete
class ExtServ
[10] Fix | Delete
include MonitorMixin
[11] Fix | Delete
include DRbUndumped
[12] Fix | Delete
[13] Fix | Delete
def initialize(there, name, server=nil)
[14] Fix | Delete
super()
[15] Fix | Delete
@server = server || DRb::primary_server
[16] Fix | Delete
@name = name
[17] Fix | Delete
ro = DRbObject.new(nil, there)
[18] Fix | Delete
synchronize do
[19] Fix | Delete
@invoker = ro.regist(name, DRbObject.new(self, @server.uri))
[20] Fix | Delete
end
[21] Fix | Delete
end
[22] Fix | Delete
attr_reader :server
[23] Fix | Delete
[24] Fix | Delete
def front
[25] Fix | Delete
DRbObject.new(nil, @server.uri)
[26] Fix | Delete
end
[27] Fix | Delete
[28] Fix | Delete
def stop_service
[29] Fix | Delete
synchronize do
[30] Fix | Delete
@invoker.unregist(@name)
[31] Fix | Delete
server = @server
[32] Fix | Delete
@server = nil
[33] Fix | Delete
server.stop_service
[34] Fix | Delete
true
[35] Fix | Delete
end
[36] Fix | Delete
end
[37] Fix | Delete
[38] Fix | Delete
def alive?
[39] Fix | Delete
@server ? @server.alive? : false
[40] Fix | Delete
end
[41] Fix | Delete
end
[42] Fix | Delete
end
[43] Fix | Delete
[44] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function