thoughtbot / parity

Shell commands for development, staging, and production parity for Heroku apps
https://thoughtbot.com
MIT License
889 stars 57 forks source link

Add lib to load path for parity and require parity #121

Closed tabfugnic closed 7 years ago

tabfugnic commented 7 years ago

Rather than explicitly requiring the path that assumes the current project directory, it tries to add the necessary directory to the load path and requiring the library after. This maintains previous behavior, but takes advantage of everything available in the load path in case the lib directory is not in the stated location, but is nonetheless known in the load path.

For example, this happens in the aptitude package manager on Debian, where bin files might be located in the /usr/bin directory but the lib/parity files are located in /usr/lib/ruby directory

geoffharcourt commented 7 years ago

Merged as 145bf87a1666a9a827aa264b03389a3c1e45683e. Thank you again for the awesome help making this better for Linux users!