Skip to content

Commit

Permalink
Fixes #37963 - Make SeedHelper.test_template_requirements public
Browse files Browse the repository at this point in the history
To allow using it from plugins seeding their own templates.
  • Loading branch information
adamruzicka committed Oct 31, 2024
1 parent 0175585 commit 485b7ef
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/seed_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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'])
Expand All @@ -178,5 +172,11 @@ def test_template_requirements(template_name, requirements)
end
true
end

private

def logger
Foreman::Logging.logger('app')
end
end
end

0 comments on commit 485b7ef

Please sign in to comment.