lib/nonnative/pool.rb in nonnative-1.76.0 vs lib/nonnative/pool.rb in nonnative-1.77.0

- old
+ new

@@ -4,16 +4,16 @@ class Pool def initialize(configuration) @configuration = configuration end - def start(&) + def start(&block) services.each(&:start) - [servers, processes].each { |t| process(t, :start, :open?, &) } + [servers, processes].each { |t| process(t, :start, :open?, &block) } end - def stop(&) - [processes, servers].each { |t| process(t, :stop, :closed?, &) } + def stop(&block) + [processes, servers].each { |t| process(t, :stop, :closed?, &block) } services.each(&:stop) end def process_by_name(name) processes[runner_index(configuration.processes, name)].first