Project

General

Profile

Bug #13127 ยป drb_client_test.rb

DRb client code - mkanoor@redhat.com (Madhu Kanoor), 01/13/2017 06:01 PM

 
1
require 'drb/drb'
2
DRb.start_service
3
remote_object = DRbObject.new_with_uri('druby://localhost:9999')
4
remote_object.each_with_index do |obj, index|
5
  puts "#{obj.name}"
6
  if index > 5
7
    exit (1)
8
  end
9
end