buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vbo...@apache.org
Subject svn commit: r706083 - /incubator/buildr/trunk/addon/buildr/drb.rb
Date Sun, 19 Oct 2008 23:12:21 GMT
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



Mime
View raw message