Sha256: 4a5ea5d4ecf66b4e00bb067bbe926e77ab703ff0e4b289cea40ceb3fa07a8b3e

Contents?: true

Size: 373 Bytes

Versions: 8

Compression:

Stored size: 373 Bytes

Contents

module Bootdisk::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
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
foreman_bootdisk-2.0.1 app/models/concerns/bootdisk/host_ext.rb
foreman_bootdisk-2.0.0 app/models/concerns/bootdisk/host_ext.rb
foreman_bootdisk-1.2.3 app/models/concerns/bootdisk/host_ext.rb
foreman_bootdisk-1.2.2 app/models/concerns/bootdisk/host_ext.rb
foreman_bootdisk-1.2.1 app/models/concerns/bootdisk/host_ext.rb
foreman_bootdisk-1.2.0 app/models/concerns/bootdisk/host_ext.rb
foreman_bootdisk-1.1.0 app/models/concerns/bootdisk/host_ext.rb
foreman_bootdisk-1.0.0 app/models/concerns/bootdisk/host_ext.rb