lib/sneakers/runner.rb in sneakers-1.0.1 vs lib/sneakers/runner.rb in sneakers-1.0.2

- old
+ new

@@ -2,11 +2,11 @@ require 'sneakers/workergroup' module Sneakers class Runner def initialize(worker_classes, opts={}) - @runnerconfig = RunnerConfig.new(worker_classes) + @runnerconfig = RunnerConfig.new(worker_classes, opts) end def run @se = ServerEngine.create(nil, WorkerGroup) { @runnerconfig.reload_config! } @se.run @@ -27,12 +27,12 @@ else super end end - def initialize(worker_classes) + def initialize(worker_classes, opts) @worker_classes = worker_classes - @conf = {} + @conf = opts end def to_h @conf end