Sha256: 9340a3be46dc10a9a1b0365a8cf2b73f6309545244165bd2b9edf88597c490a8

Contents?: true

Size: 453 Bytes

Versions: 6

Compression:

Stored size: 453 Bytes

Contents

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
foreman_bootdisk-2.0.1 app/services/bootdisk/renderer.rb
foreman_bootdisk-2.0.0 app/services/bootdisk/renderer.rb
foreman_bootdisk-1.2.3 app/services/bootdisk/renderer.rb
foreman_bootdisk-1.2.2 app/services/bootdisk/renderer.rb
foreman_bootdisk-1.2.1 app/services/bootdisk/renderer.rb
foreman_bootdisk-1.2.0 app/services/bootdisk/renderer.rb