Sha256: 8f000b94db180b2fae3c8af1d00d6203743696a56f2e970d445458201defd1e4

Contents?: true

Size: 334 Bytes

Versions: 8

Compression:

Stored size: 334 Bytes

Contents

# 
# Usage:
#  drbqs-server server_def.rb
# 

DRbQS.define_server(:finish_exit => true) do |server, argv, opts|
  tgen = DRbQS::TaskGenerator.new(:sleep_time => 2)
  tgen.set do
    3.times do |i|
      add_task(DRbQS::CommandTask.new(["sleep #{@sleep_time}", 'echo hello world']))
    end
  end
  server.add_task_generator(tgen)
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
drbqs-0.0.15 example/command/server_def.rb
drbqs-0.0.14 example/command/server_def.rb
drbqs-0.0.13 example/command/server_def.rb
drbqs-0.0.12 example/command/server_def.rb
drbqs-0.0.11 example/command/server_def.rb
drbqs-0.0.10 example/command/server_def.rb
drbqs-0.0.9 example/command/server_def.rb
drbqs-0.0.8 example/command/server_def.rb