You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by vb...@apache.org on 2008/10/20 01:12:21 UTC

svn commit: r706083 - /incubator/buildr/trunk/addon/buildr/drb.rb

Author: vborja
Date: Sun Oct 19 16:12:20 2008
New Revision: 706083

URL: http://svn.apache.org/viewvc?rev=706083&view=rev
Log:
Use the server to determine the drb uri used for clients.

Modified:
    incubator/buildr/trunk/addon/buildr/drb.rb

Modified: incubator/buildr/trunk/addon/buildr/drb.rb
URL: http://svn.apache.org/viewvc/incubator/buildr/trunk/addon/buildr/drb.rb?rev=706083&r1=706082&r2=706083&view=diff
==============================================================================
--- incubator/buildr/trunk/addon/buildr/drb.rb (original)
+++ incubator/buildr/trunk/addon/buildr/drb.rb Sun Oct 19 16:12:20 2008
@@ -88,13 +88,10 @@
 
       def run_client
         buildr = DRbObject.new(nil, server_uri)
-        buildr.remote_ping # test if the server is running
-        DRb.start_service(client_uri)
-        buildr.remote_run :dir => Dir.pwd, 
-                          :in  => $stdin, 
-                          :out => $stdout, 
-                          :err => $stderr,
-                          :argv => ARGV
+        uri = buildr.client_uri # obtain our uri from the server
+        DRb.start_service(uri)
+        buildr.remote_run :dir => Dir.pwd, :argv => ARGV,
+                          :in  => $stdin, :out => $stdout, :err => $stderr
       end
 
       def run_server