Sha256: 85ffd19363cd00e40cc66cc886096b94d26912cd85a3f70be4c6e32b1acaebeb
Contents?: true
Size: 567 Bytes
Versions: 1
Compression:
Stored size: 567 Bytes
Contents
require "drb" require "ro_commands/helpers/all_files" require "ro_commands/helpers/out" require "ro_commands/core_ext/string" item = ARGV.shift meth = ARGV.shift args = ARGV DRb.start_service file = RoCommands.file_map.keys.grep(%r{#{item}}).first if file port = RoCommands.file_map[file.to_sym] #Out.out "starting #{File.basename(file.to_s).gsub(%r{\.rb}, "")}" drb_obj = DRbObject.new_with_uri("druby://localhost:#{port}") r = drb_obj.start(["drb_#{meth}", *args]) #Out.out "r:#{r} file:#{File.basename __FILE__} line:#{__LINE__}" Out.out(r) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ro_commands-0.0.1 | lib/drb/client.rb |