ββββββββββ βββββββ βββ βββββββββββββββββββ ββββββ βββ βββ βββββββββββ ββββββββββββ ββββββββββββββββββββββββββββββ βββ βββ βββ βββ ββββββ βββββββββββββββββ βββββββββββ βββ βββ βββ βββ ββββββ βββββββββββββββββ βββββββββββ βββ βββββββββββββββββββββββββββββββββββββββββββββββββββββ ββββββββββββ βββββββββββββββ βββββββ βββββββ βββββββββββββββββββ βββ βββββββ
A configuration inspector/checker for Ruby on Rails.
Clouseau analyzes your Rails app and provides information about your configuration.
It helps answer the following questions:
- Which config values are being executed in which environment?
- Do any of those values seem suspicious?
- Where in my Rails app are those config values used?
- Where in my Rails app am I using environment variables?
https://github.com/railsconfig/config
- Analyze config's
settings.yml
files to show you all the configured variables and values - Indicate which values are missing from the base configuration file (aka
settings.yml
) - Indicate which production values are hard-coded the same as values for other environments
- Indicate which values are derived from other configuration files, and what those derived values will be
- Indicate where in your Rails app all the Config config values are used
https://github.com/laserlemon/figaro
- Indicate where in your Rails app all the Figaro config values are used
- Indicate where in your Rails app all the environment variables are used
- Clone this repository
cd
into the resultingclouseau
directory- Run
make install
- Run
which clouseau
to verify the install was successful
go run clouseau.go --dir=path-to-your-rails-app
clouseau --dir=path-to-your-rails-app
If you're currently in your Rails directory, you can just run clouseau
directly.
Clouseau generates a static HTML report about your configuration values and their use. After it has run, it will automatically open the resulting HTML page. This file can be found in clouseau/index.html
.
WARNING: This app has so far only been used on MacOS. No guarantees are provided.
Pull requests, bug reports, feature requests all welcome. If you're a Ruby/Rails dev and there's something you want added to this, don't let the fact that Clouseau is written in Go stop you. Dive in, hack away. Ping me, I'm happy to help.