Sha256: 1178d16e2aa2ca8fcccf924396ab972f8e35a8f9e1a0e79e504bb8d91f7415d0

Contents?: true

Size: 465 Bytes

Versions: 2

Compression:

Stored size: 465 Bytes

Contents

module Bootdisk
  class DisksController < ::ApplicationController
    def generic_iso
      begin
        tmpl = Bootdisk::Renderer.new.generic_template_render
      rescue => e
        error _('Failed to render boot disk template: %s') % e
        redirect_to :back
        return
      end

      Bootdisk::ISOGenerator.new(tmpl).generate do |iso|
        send_data File.read(iso), :filename => "bootdisk_#{Setting[:foreman_url]}.iso"
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
foreman_bootdisk-2.0.1 app/controllers/bootdisk/disks_controller.rb
foreman_bootdisk-2.0.0 app/controllers/bootdisk/disks_controller.rb