X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/4419ab41e208b813ab7ee7005de111fb23049a4f..e0b3c9e46ab80798ec9606a853a1af9cb818a758:/src/bindings/ruby/MasterSlave.rb diff --git a/src/bindings/ruby/MasterSlave.rb b/src/bindings/ruby/MasterSlave.rb index 92ed0fc36a..307f865559 100644 --- a/src/bindings/ruby/MasterSlave.rb +++ b/src/bindings/ruby/MasterSlave.rb @@ -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()