Ruby gem for defining which binaries/commands must be available on the PATH in order for your Rails application to function properly.
Installation
Add this line to your application's Gemfile:
gem 'path-dependencies'And then execute:
$ bundle installUsage
Define a path_dependencies array in config/application.rb like so:
class Application < Rails::Application
config.path_dependencies = [
"dos2unix",
"free",
"ngrok",
"node",
"sox",
"wget",
"youtube-dl"
]
endWhen your Rails application starts, an error will be raised immediately if any binaries/commands are not available on the PATH. A nice precautionary measure!
Related
If you find this gem useful, you may also like env-dependencies.