Skip to content

Commit 21fa8e4

Browse files
committed
ml - add bash example for engines to README
1 parent e1fbc4e commit 21fa8e4

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ See stuff about a Rails app.
55
There were a few things missing to the included `rake stats`
66
RailsStats mainly adds the ability to be run from outside the project in question. This can be helpful if the app you are interested in can not be booted for some reason.
77

8-
### Run it
8+
### Run it outside Rails project
99

1010
```bash
1111

@@ -33,7 +33,12 @@ Directory: /path/to/app/
3333
| Total | 21805 | 16980 | 218 | 1483 | 6 | 9 |
3434
+----------------------+-------+-------+---------+---------+-----+-------+
3535
Code LOC: 10142 Test LOC: 6838 Code to Test Ratio: 1:0.7
36+
```
37+
38+
### Run it on many Rails engines
3639

40+
```bash
41+
$ for dir in /path/to/many/engines/*/; do bundle exec rake stats[$dir]; done
3742
```
3843

3944
### Within your Rails project
@@ -62,7 +67,7 @@ RailsStats adds more coverage than the default.
6267

6368
### Example output
6469

65-
Here are some open source Rails projects an their output.
70+
Here are some open source Rails projects and their output.
6671

6772
```bash
6873
$ bundle exec rake stats[/users/brian/examples/diaspora/]

0 commit comments

Comments
 (0)