everzet/capifony — pull request #141 by willdurand (2012-06-28 07:05:30+00:00)
Title: Feature: readable output

Heya,

Here is an important change in capifony. Not because I want to break BC, but just because I'd like to make the output more readable.
First of all, I read the nice blog post about [cleaning up capistrano deployment output](http://jondavidjohn.com/blog/2012/04/cleaning-up-capistrano-deployment-output), and I thought it was nice to add the same thing in capifony, **by default**.

* I added human readable and understandable messages in almost each tasks, at least all tasks that are part of the deployment process;
* I added a dependency to the Ruby gem [colored](https://rubygems.org/gems/colored);
* I also changed the logger configuration.

The result is:

![](https://dl.dropbox.com/u/84619931/Capture%20d%E2%80%99%C3%A9cran%202012-06-28%20%C3%A0%2008.44.55.png)

Better, isn't it? This is the new default output. If everything is ok, then you get this output, which is better than the soooo long output you can get at the moment. Then, you can change the logger configuration, and get the plain old output without any problems, and thanks to colored, it's even better:

![](https://dl.dropbox.com/u/84619931/Capture%20d%E2%80%99%C3%A9cran%202012-06-28%20%C3%A0%2009.01.33.png)

Configuration I had to add: `logger.level = Logger::MAX_LEVEL`, that's all.

Warning messages are colored in yellow. If an error occurs, you know where it happened, and the error output, so you don't loose tracks of what happened.

By the way, Jonathan added UTF-8 icons but I'm not sure about compatibility on all OS, so I decided to not add them.

Anyway, I won't push these changes right now, but I'd like your feedback. Should we add this feature to capifony?