diff options
author | Dave Smith <dizzyd@dizzyd.com> | 2009-12-07 15:17:03 -0700 |
---|---|---|
committer | Dave Smith <dizzyd@dizzyd.com> | 2009-12-07 15:17:03 -0700 |
commit | cb1899b818fded4ddbeadfa8ab10efae1030f24d (patch) | |
tree | edc5cc7f9d35e063439b960a867e2087b465974d | |
parent | b5eded43d8e284a7f09a791e9de1e31045455ce2 (diff) |
Adding convenience method for determing verbosity of run
-rw-r--r-- | src/rebar_config.erl | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/rebar_config.erl b/src/rebar_config.erl index 199461c..5684e66 100644 --- a/src/rebar_config.erl +++ b/src/rebar_config.erl @@ -28,7 +28,8 @@ get_modules/2, get_list/3, get/3, - set_global/2, get_global/2]). + set_global/2, get_global/2, + is_verbose/0]). -include("rebar.hrl"). @@ -91,6 +92,14 @@ get_global(Key, Default) -> Value end. +is_verbose() -> + case get_global(verbose, "0") of + "1" -> + true; + _ -> + false + end. + %% =================================================================== %% Internal functions |