Sha256: 24fa610125bfe4e2e32a2ed2215544bc9037a5392dd6c2c65a0065d658675766
Contents?: true
Size: 659 Bytes
Versions: 1
Compression:
Stored size: 659 Bytes
Contents
require 'uri' module ForemanBootdisk class Renderer include ::Foreman::Renderer include Rails.application.routes.url_helpers def generic_template_render tmpl = ProvisioningTemplate.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, :subnet).new(nil, nil) unattended_render(tmpl.template) end def bootdisk_chain_url(action = 'iPXE') u = URI.parse(foreman_url(action)) u.query = "#{u.query}&mac=" u.fragment = nil u.to_s end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
foreman_bootdisk-6.0.0 | app/services/foreman_bootdisk/renderer.rb |