From 485b7ef4145488648a44b29b335159ae86470706 Mon Sep 17 00:00:00 2001 From: Adam Ruzicka Date: Thu, 31 Oct 2024 13:08:32 +0000 Subject: [PATCH] Fixes #37963 - Make SeedHelper.test_template_requirements public To allow using it from plugins seeding their own templates. --- lib/seed_helper.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/seed_helper.rb b/lib/seed_helper.rb index 38210ace688..8d9960da5ae 100644 --- a/lib/seed_helper.rb +++ b/lib/seed_helper.rb @@ -158,12 +158,6 @@ def format_errors(model = nil) model.errors.full_messages.join(';') end - private - - def logger - Foreman::Logging.logger('app') - end - def test_template_requirements(template_name, requirements) requirements.each do |r| plugin = Foreman::Plugin.find(r['plugin']) @@ -178,5 +172,11 @@ def test_template_requirements(template_name, requirements) end true end + + private + + def logger + Foreman::Logging.logger('app') + end end end