Sha256: 14e5ed83ad919f19bc8d9b7740bde0966af9acb9302f3a9931e177ca09bab41f
Contents?: true
Size: 625 Bytes
Versions: 1
Compression:
Stored size: 625 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') ForemanBootdisk::Renderer.format_bootdisk_chain_url(foreman_url(action), mac) 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.1.0 | app/models/concerns/foreman_bootdisk/host_ext.rb |