Sha256: 97f2531ea01bb8d556659c35abaab944fab5e16d7564ad0bbab1b9a332a7eca8
Contents?: true
Size: 337 Bytes
Versions: 5
Compression:
Stored size: 337 Bytes
Contents
('01'..'20').each do |i| God.watch do |w| w.name = "stress-#{i}" w.start = "ruby " + File.join(File.dirname(__FILE__), *%w[simple_server.rb]) w.interval = 1 w.grace = 2 w.group = 'test' w.start_if do |start| start.condition(:process_running) do |c| c.running = false end end end end
Version data entries
5 entries across 5 versions & 1 rubygems