Sha256: b5a6dd4f90cef5497d5f8e977884ec1de299245194b1afb9f30c51185fd688aa

Contents?: true

Size: 734 Bytes

Versions: 75

Compression:

Stored size: 734 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 "   -- build slave #{id}..."; $stdout.flush
magazine_slave = MagazineSlave.new(id, test_framework_short_name )

# never expire, the renewer returns nil, which means expiration of *nix clock
renewer = Rinda::SimpleRenewer.new(nil)
Rinda::RingProvider.new(:MagazineSlave, magazine_slave, id, renewer).provide

puts "  --> DRb magazine_slave_service: #{id} provided..."; $stdout.flush

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

Version data entries

75 entries across 75 versions & 3 rubygems

Version Path
classiccms-0.7.5 vendor/bundle/gems/spork-0.9.0/lib/spork/run_strategy/magazine/magazine_slave_provider.rb
classiccms-0.7.4 vendor/bundle/gems/spork-0.9.0/lib/spork/run_strategy/magazine/magazine_slave_provider.rb
classiccms-0.7.3 vendor/bundle/gems/spork-0.9.0/lib/spork/run_strategy/magazine/magazine_slave_provider.rb
classiccms-0.7.2 vendor/bundle/gems/spork-0.9.0/lib/spork/run_strategy/magazine/magazine_slave_provider.rb
classiccms-0.7.1 vendor/bundle/gems/spork-0.9.0/lib/spork/run_strategy/magazine/magazine_slave_provider.rb
classiccms-0.7.0 vendor/bundle/gems/spork-0.9.0/lib/spork/run_strategy/magazine/magazine_slave_provider.rb
classiccms-0.6.9 vendor/bundle/gems/spork-0.9.0/lib/spork/run_strategy/magazine/magazine_slave_provider.rb
classiccms-0.6.8 vendor/bundle/gems/spork-0.9.0/lib/spork/run_strategy/magazine/magazine_slave_provider.rb
classiccms-0.6.7 vendor/bundle/gems/spork-0.9.0/lib/spork/run_strategy/magazine/magazine_slave_provider.rb
classiccms-0.6.6 vendor/bundle/gems/spork-0.9.0/lib/spork/run_strategy/magazine/magazine_slave_provider.rb
classiccms-0.6.5 vendor/bundle/gems/spork-0.9.0/lib/spork/run_strategy/magazine/magazine_slave_provider.rb
classiccms-0.6.4 vendor/bundle/gems/spork-0.9.0/lib/spork/run_strategy/magazine/magazine_slave_provider.rb
classiccms-0.6.3 vendor/bundle/gems/spork-0.9.0/lib/spork/run_strategy/magazine/magazine_slave_provider.rb
classiccms-0.6.2 vendor/bundle/gems/spork-0.9.0/lib/spork/run_strategy/magazine/magazine_slave_provider.rb
classiccms-0.6.1 vendor/bundle/gems/spork-0.9.0/lib/spork/run_strategy/magazine/magazine_slave_provider.rb
classiccms-0.6.0 vendor/bundle/gems/spork-0.9.0/lib/spork/run_strategy/magazine/magazine_slave_provider.rb
classiccms-0.5.17 vendor/bundle/gems/spork-0.9.0/lib/spork/run_strategy/magazine/magazine_slave_provider.rb
classiccms-0.5.16 vendor/bundle/gems/spork-0.9.0/lib/spork/run_strategy/magazine/magazine_slave_provider.rb
classiccms-0.5.15 vendor/bundle/gems/spork-0.9.0/lib/spork/run_strategy/magazine/magazine_slave_provider.rb
classiccms-0.5.14 vendor/bundle/gems/spork-0.9.0/lib/spork/run_strategy/magazine/magazine_slave_provider.rb