Class: Suse

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

Constant Summary collapse

PXEFILES =
{:kernel => "linux", :initrd => "initrd"}

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

Override the class representation, as this breaks many rails helpers


6
7
8
# File 'app/models/suse.rb', line 6

def class
  Operatingsystem
end

#pxe_typeObject


10
11
12
# File 'app/models/suse.rb', line 10

def pxe_type
  "yast"
end

#pxedirObject


14
15
16
# File 'app/models/suse.rb', line 14

def pxedir
  "boot/$arch/loader"
end

#url_for_boot(file) ⇒ Object


18
19
20
# File 'app/models/suse.rb', line 18

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