Sha256: abf6d73a33763d8bbee0c6fed05498a2a9e46d8c8ba124330f4b455973f092cb
Contents?: true
Size: 829 Bytes
Versions: 2
Compression:
Stored size: 829 Bytes
Contents
# magazine_slave_provider.rb require 'drb' require 'rinda/ring' require 'rinda/tuplespace' require 'magazine_slave' class MagazineSlaveProvider def initialize(id, app_pwd, test_framework_short_name) # start up the Rinda service DRb.start_service Dir.chdir app_pwd puts " -- build slave #{id}..."; $stdout.flush magazine_slave = MagazineSlave.new(id, test_framework_short_name ) Rinda::RingProvider.new(:MagazineSlave, magazine_slave, id).provide puts " --> DRb magazine_slave_service: #{id} provided..."; $stdout.flush # wait for the DRb service to finish before exiting DRb.thread.join end end id = ARGV[0].to_i || "?" app_pwd = ARGV[1] test_framework_short_name = ARGV[2] # Create slave provider MagazineSlaveProvider.new(id, app_pwd, test_framework_short_name)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
invo-sporknife-0.1.0.3 | lib/spork/run_strategy/magazine/magazine_slave_provider.rb |
invo-sporknife-0.1.0.2 | lib/spork/run_strategy/magazine/magazine_slave_provider.rb |