Refactor and simplify CLI and Env:

* Do not modify Env logger from CLI;
* Add verbose attribute to Env;
* Implement Env#verbose?;
* Remove Env#log_level and Env#log_level=;
* Refactor related specs, improve some wording.
This commit is contained in:
Thibault Jouan
2014-05-25 17:44:24 +00:00
parent 0db2d90b72
commit 39427c35c3
4 changed files with 51 additions and 50 deletions

View File

@@ -36,7 +36,7 @@ module Producer
@arguments = arguments.inject([]) do |m, e|
case e
when '-v'
env.log_level = Logger::INFO
env.verbose = true
when '-n'
env.dry_run = true
else