chomp() used instead of gsub where possible.
parent
3498320721
commit
abc364e212
|
@ -28,11 +28,11 @@ Kemal.config.extra_options do |parser|
|
||||||
end
|
end
|
||||||
|
|
||||||
parser.on "-P file", "--password-file file", "Password file." do |file_name|
|
parser.on "-P file", "--password-file file", "Password file." do |file_name|
|
||||||
authd_db_password = File.read(file_name).gsub /\n$/, ""
|
authd_db_password = File.read(file_name).chomp
|
||||||
end
|
end
|
||||||
|
|
||||||
parser.on "-K file", "--key-file file", "JWT key file" do |file_name|
|
parser.on "-K file", "--key-file file", "JWT key file" do |file_name|
|
||||||
authd_jwt_key = File.read(file_name).gsub /\n$/, ""
|
authd_jwt_key = File.read(file_name).chomp
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue