Sha256: 7b1cdd81821086995ee603fc2304304576a9a8e078bb82adfcc7ef0010155336
Contents?: true
Size: 652 Bytes
Versions: 1
Compression:
Stored size: 652 Bytes
Contents
require 'uri' module ForemanBootdisk::HostExt extend ActiveSupport::Concerns def bootdisk_template ProvisioningTemplate.find_by_name(Setting[:bootdisk_host_template]) || raise(::Foreman::Exception.new(N_('Unable to find template specified by %s setting'), 'bootdisk_host_template')) end def bootdisk_template_render @host = self pxe_render(bootdisk_template.template) end def bootdisk_chain_url(mac = self.mac, action = 'iPXE') u = URI.parse(foreman_url(action)) u.query = "#{u.query}&mac=#{mac}" u.fragment = nil u.to_s end def bootdisk_raise(*args) raise ::Foreman::Exception.new(*args) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
foreman_bootdisk-6.0.0 | app/models/concerns/foreman_bootdisk/host_ext.rb |