Sha256: 5d8a7783d7318546c0682ed3032c3c8fe6d64b33b2f9fa7ff7dfcad607f5b2ad
Contents?: true
Size: 1020 Bytes
Versions: 8
Compression:
Stored size: 1020 Bytes
Contents
kind = TemplateKind.find_or_create_by_name('Bootdisk') ConfigTemplate.without_auditing do content = File.read(File.join(ForemanBootdisk::Engine.root, 'app', 'views', 'foreman_bootdisk', 'host.erb')) ConfigTemplate.find_or_create_by_name( :name => 'Boot disk iPXE - host', :template_kind_id => kind.id, :snippet => false, :template => content ).update_attributes(:template => content, :default => true, :vendor => "Foreman boot disk", :locked => true) content = File.read(File.join(ForemanBootdisk::Engine.root, 'app', 'views', 'foreman_bootdisk', 'generic_host.erb')) ConfigTemplate.find_or_create_by_name( :name => 'Boot disk iPXE - generic host', :template_kind_id => kind.id, :snippet => false, :template => content ).update_attributes(:template => content, :default => true, :vendor => "Foreman boot disk", :locked => true) end
Version data entries
8 entries across 8 versions & 1 rubygems