Skip to content

Commit

Permalink
Cleanup changes:
Browse files Browse the repository at this point in the history
* changed entry file from main.go to clouseau.go
* improved readme
* added binary name to .gitignore
  • Loading branch information
Chris Cummer committed Dec 4, 2017
1 parent 35cae94 commit 3c56d14
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 42 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.DS_Store
clouseau.go
output/*.html
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
install:
go clean
go install

clean:
go clean
rm -f clouseau
37 changes: 33 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Clouseau will analyze your Rails app and provide information about the following

<img src="./images/clouseau_ui.png" alt="clouseau ui example" />

## Config gem
### Config gem
https://github.com/railsconfig/config

* Analyze config's `settings.yml` files to show you all the configured variables and values
Expand All @@ -23,11 +23,40 @@ https://github.com/railsconfig/config
* 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

## Figaro gem
### Figaro gem
https://github.com/laserlemon/figaro

* Indicate where in your Rails app all the Figaro config values are used

## Environment Variables
### Environment Variables

* Indicate where in your Rails app all the environment variables are used
* Indicate where in your Rails app all the environment variables are used

## Installation

1. Clone this repository
2. `cd` into the resulting `clouseau` directory
3. Run `make install`
4. Run `which clouseau` to verify the install was successful

## Usage

### Source repository

`go run clouseau.go --dir=path-to-your-rails-app`

### Compiled binary

`clouseau --dir=path-to-your-rails-app`

If you're currently in your Rails directory, you can just run `clouseau` directly.

## Output

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 `output/index.html`.

## Development

**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.
2 changes: 1 addition & 1 deletion display/html.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"os"
"os/exec"

"github.com/senorprogrammer/conf_check/modules"
"github.com/senorprogrammer/clouseau/modules"
)

type HtmlData struct {
Expand Down
2 changes: 1 addition & 1 deletion display/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"sort"

"github.com/olekukonko/tablewriter"
"github.com/senorprogrammer/conf_check/modules"
"github.com/senorprogrammer/clouseau/modules"
)

type TableData struct {
Expand Down
36 changes: 0 additions & 36 deletions main.go

This file was deleted.

0 comments on commit 3c56d14

Please sign in to comment.