diff --git a/bin/cli_helper.rb b/bin/cli_helper.rb index f34dd5f0..24ae1e25 100755 --- a/bin/cli_helper.rb +++ b/bin/cli_helper.rb @@ -189,6 +189,9 @@ def run_rake_tasks(tasks) def set_verbosity(verbosity=nil) verbosity = verbosity.nil? ? Verbosity::NORMAL : VERBOSITY_OPTIONS[verbosity.to_sym()] + # If we already set verbosity, there's nothing more to do here + return if Object.const_defined?('PROJECT_VERBOSITY') + # Create global constant PROJECT_VERBOSITY Object.module_eval("PROJECT_VERBOSITY = verbosity") PROJECT_VERBOSITY.freeze()