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:
parent
80a2d69acc
commit
1db14ee0e7
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue