1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

Infer a proctitle tag based on the directory

This commit is contained in:
Evan Phoenix 2015-01-20 10:07:17 -08:00
parent 80a2d69acc
commit 1db14ee0e7

View file

@ -60,6 +60,14 @@ module Puma
unless @options[:control_auth_token]
setup_random_token
end
unless @options[:tag]
@options[:tag] = infer_tag
end
end
def infer_tag
File.basename Dir.getwd
end
# Injects the Configuration object into the env