Skip to content

Instantly share code, notes, and snippets.

View DmytroStepaniuk's full-sized avatar
🇺🇦

Dmytro Stepaniuk DmytroStepaniuk

🇺🇦
View GitHub Profile
@DmytroStepaniuk
DmytroStepaniuk / puma.rb
Created August 6, 2020 11:36
Send info about Puma phased restart - useful to have progress info in slack
def print_worker_index_of index
worker_index = ""
(index + 1).to_s.split('').each do |number|
case number
when "1"
worker_index = worker_index.concat(":one:")
when "2"
worker_index = worker_index.concat(":two:")
when "3"