lib/bluepill/group.rb in bluepill-0.0.24 vs lib/bluepill/group.rb in bluepill-0.0.25

- old
+ new

@@ -19,18 +19,21 @@ process.tick end end # proxied events - [:start, :unmonitor, :stop, :restart, :boot!].each do |event| + [:start, :unmonitor, :stop, :restart, :boot].each do |event| class_eval <<-END def #{event}(process_name = nil) threads = [] + affected = [] self.processes.each do |process| next if process_name && process_name != process.name + affected << [self.name, process.name].join(":") threads << Thread.new { process.handle_user_command("#{event}") } end threads.each { |t| t.join } + affected end END end end end \ No newline at end of file