Class: Windows

Inherits:
Operatingsystem show all
Defined in:
app/models/windows.rb

Constant Summary collapse

PXEFILES =
{:kernel => "startrom.0", :initrd => "boot.sdi"}

Constants inherited from Operatingsystem

Operatingsystem::FAMILIES

Instance Method Summary collapse

Methods inherited from Operatingsystem

#as_json, #boot_filename, #bootfile, families, families_as_collection, #family, #family=, #fullname, #image_extension, #initrd, #interpolate_medium_vars, #kernel, #medium_uri, #medium_vars_to_uri, #pxe_files, #pxe_prefix, #pxe_variant, #release, #repos, #require_nfs_access_to_medium, #supports_image, #template_kind, #to_label, #to_s, #use_release_name?

Methods included from Authorization

#enforce_create_permissions, #enforce_destroy_permissions, #enforce_edit_permissions, #enforce_permissions, included, #permission_failed?

Instance Method Details

#classObject


4
5
6
# File 'app/models/windows.rb', line 4

def class
  Operatingsystem
end

#pxe_typeObject


8
9
10
# File 'app/models/windows.rb', line 8

def pxe_type
  "waik"
end

#pxedirObject


12
13
14
# File 'app/models/windows.rb', line 12

def pxedir
  "images"
end

#url_for_boot(file) ⇒ Object


16
17
18
# File 'app/models/windows.rb', line 16

def url_for_boot(file)
  pxedir + "/" + PXEFILES[file]
end