From 13c7757652500d520422be63730a5def8c43946f Mon Sep 17 00:00:00 2001 From: Mark VanderVoord Date: Sat, 13 Apr 2024 17:21:43 -0400 Subject: [PATCH] Don't redefine things that have already been created. --- bin/cli_helper.rb | 3 +++ 1 file changed, 3 insertions(+) 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()