Extracting and mangling a parameter from a MySQL configuration file
Aside from not using a constant for RETURN_PATH (which is obviously wrong and will cause Ruby to warn you), it seems reasonable enough to me.