global

def status

def status
  if clustered?
    messages = stats[:worker_status].map do |worker|
      common_message(worker[:last_status])
    end.join(',')
    "Puma #{Puma::Const::VERSION}: cluster: #{booted_workers}/#{workers}, worker_status: [#{messages}]"
  else
    "Puma #{Puma::Const::VERSION}: worker: #{common_message(stats)}"
  end
end