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 1040e42..f1f358b 100644 (file)
@@ -1,11 +1,20 @@
 require 'msg'
 require 'RubyProcess'
-
 require 'Master'
 require 'Slave'
 
-Msg.init()
-Msg.createEnvironment("../../../examples/msg/msg_platform.xml")
-Msg.deployApplication("MasterSlave_deploy.xml")
-Msg.run()
-Msg.exit()
+# include MSG
+
+# raise "Bad Number Of Arguments" if ARGV.length != 2 
+
+# info("Bye")
+
+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()
+ MSG.run()
+# exit()