Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Almost Done ... Still Stuckin' Wiith Some MSG Error while The Slave Should Recieve ...
[simgrid.git] / src / bindings / ruby / MasterSlave.rb
index 92ed0fc..f1f358b 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 
 
 # info("Bye")
 
-init(ARGV)
-raise "Bad Number Of Arguments " if (ARGV.length < 2)
+MSG.init(ARGV)
+raise "Bad Number Of Arguments" if (ARGV.length < 2)
+#  p  Host.number()
+MSG.createEnvironment(ARGV[0])
+#  p  Host.number()
+MSG.deployApplication(ARGV[1])
 # p  Host.number()
-createEnvironment(ARGV[0])
-# p  Host.number()
-deployApplication(ARGV[1])
-# p  Host.number()
-
-# run()
+ MSG.run()
 # exit()