Class: Suse
- Inherits:
-
Operatingsystem
- Object
- ActiveRecord::Base
- Operatingsystem
- Suse
- Defined in:
- app/models/suse.rb
Constant Summary collapse
- PXEFILES =
{:kernel => "linux", :initrd => "initrd"}
Constants inherited from Operatingsystem
Instance Method Summary collapse
-
#class ⇒ Object
Override the class representation, as this breaks many rails helpers.
- #pxe_type ⇒ Object
- #pxedir ⇒ Object
- #url_for_boot(file) ⇒ Object
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
#class ⇒ Object
Override the class representation, as this breaks many rails helpers
6 7 8 |
# File 'app/models/suse.rb', line 6 def class end |
#pxe_type ⇒ Object
10 11 12 |
# File 'app/models/suse.rb', line 10 def pxe_type "yast" end |
#pxedir ⇒ Object
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 |