mendicant-university/community — Issue #53: rake setup, EDITOR=vi and backticks
Author: wicz
Created: 2012-02-13 17:51:31+00:00
State: open

When your `$EDITOR` is `vi` and you run `bundle exec rake setup` you get the following error: `Vim: Warning: Output is not to a terminal`.

I don't know why exactly this happen, maybe because `vi` expects `STDOUT` and backticks somehow changes it to read and return it from the subshell after execution (!?)

Some solutions:

* remove the `$EDITOR` execution form `requires_edit`
* use `system(ENV['EDITOR'], file)` rather than backticks (we don't need the output anyway)
* just `cat` the contents of `config/database.yml`

Feel free to assign me this issue when we decide the best solution.