Sha256: 774a5cac74801b841316c8bfdc9069a31b58b88ae06d558816587c3155622586

Contents?: true

Size: 649 Bytes

Versions: 3

Compression:

Stored size: 649 Bytes

Contents

# magazine_slave_provider.rb
require 'drb'
require 'rinda/ring'
require 'rinda/tuplespace'
require 'magazine_slave'



# pass on

id = ARGV[0].to_i || "?"
app_pwd = ARGV[1]
test_framework_short_name = ARGV[2]

# start up the Rinda service

DRb.start_service

Dir.chdir app_pwd
puts "\n  --> build slave #{id} pwd: #{Dir.pwd}"; $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...\n\n"; $stdout.flush

# wait for the DRb service to finish before exiting
DRb.thread.join

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
milhouse-spork-0.7.5.2 lib/spork/run_strategy/magazine/magazine_slave_provider.rb
milhouse-spork-0.7.5.1 lib/spork/run_strategy/magazine/magazine_slave_provider.rb
milhouse-spork-0.7.5 lib/spork/run_strategy/magazine/magazine_slave_provider.rb