Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7117 48e7efb5...
[simgrid.git] / src / bindings / ruby / MasterSlave.rb
index 92ed0fc..307f865 100644 (file)
@@ -3,20 +3,18 @@ require 'RubyProcess'
 require 'Master'
 require 'Slave'
 
-include MSG
+include MSG
 
-raise "Bad Number Of Arguments" if ARGV.length != 2 
+raise "Bad Number Of Arguments" if ARGV.length != 2 
 
-# info("Bye")
-
-init(ARGV)
-raise "Bad Number Of Arguments " if (ARGV.length < 2)
-# p  Host.number()
-createEnvironment(ARGV[0])
-# p  Host.number()
-deployApplication(ARGV[1])
-# p  Host.number()
-
-# run()
+MSG.init(ARGV)
+# Thread.list.each {|t| p t}
+raise "Bad Number Of Arguments" if (ARGV.length < 2)
+MSG.createEnvironment(ARGV[0])
+# Thread.list.each {|t| p t}
+MSG.deployApplication(ARGV[1])
+# Thread.list.each {|t| p t}
+MSG.run()
+# Thread.list.each {|t| p t}
+MSG.getClock()
 # exit()