module Bootdisk class Renderer include ::Foreman::Renderer include Rails.application.routes.url_helpers def generic_template_render tmpl = ConfigTemplate.find_by_name(Setting[:bootdisk_generic_host_template]) || raise(::Foreman::Exception.new(N_('Unable to find template specified by %s setting'), 'bootdisk_generic_host_template')) @host = Struct.new(:token).new(nil) unattended_render(tmpl.template) end end end