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()