Sha256: a97f964d0b3688f44b38bb94e6e9d38f45fdf2a34156ba841da63cfc870ef41c
Contents?: true
Size: 646 Bytes
Versions: 6
Compression:
Stored size: 646 Bytes
Contents
require 'uri' module ForemanBootdisk::HostExt extend ActiveSupport::Concerns def bootdisk_template ConfigTemplate.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
6 entries across 6 versions & 1 rubygems