Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Force generators to abort if they fail.
Rails does not seem to provide a clean way to abort something if a generator fails. Under most circumstances this is probably the proper solution. However, for us, these generators calls also function as smoke tests for our actual generator code. If one of them fails, we need to fail the build. Thankfully, if the generator had a problem the status is captured in `$?`. We can verify that the last process was successful and abort when it is not; thus failing the build and notifying the team.
- Loading branch information