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
1 require 'msg'
2 require 'RubyProcess'
3 require 'Master'
4 require 'Slave'
5
6 # include MSG
7
8 # raise "Bad Number Of Arguments" if ARGV.length != 2 
9
10 # info("Bye")
11
12 MSG.init(ARGV)
13 raise "Bad Number Of Arguments" if (ARGV.length < 2)
14 #  p  Host.number()
15 MSG.createEnvironment(ARGV[0])
16 #  p  Host.number()
17 MSG.deployApplication(ARGV[1])
18 # p  Host.number()
19  MSG.run()
20 # exit()