Class: Bootloader::AutoinstProfile::GlobalSection

Inherits:
Installation::AutoinstProfile::SectionWithAttributes
  • Object
show all
Defined in:
src/lib/bootloader/autoinst_profile/global_section.rb

Overview

This class represents an AutoYaST section within a one

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#activate ⇒ Boolean?



# File 'src/lib/bootloader/autoinst_profile/global_section.rb', line 56


#append ⇒ String?



# File 'src/lib/bootloader/autoinst_profile/global_section.rb', line 59


#boot_boot ⇒ String?



# File 'src/lib/bootloader/autoinst_profile/global_section.rb', line 62


#boot_custom ⇒ String?



# File 'src/lib/bootloader/autoinst_profile/global_section.rb', line 67


#boot_extended ⇒ String?



# File 'src/lib/bootloader/autoinst_profile/global_section.rb', line 70


#boot_mbr ⇒ String?



# File 'src/lib/bootloader/autoinst_profile/global_section.rb', line 73


#boot_root ⇒ String?



# File 'src/lib/bootloader/autoinst_profile/global_section.rb', line 77


#cpu_mitigations ⇒ String?



# File 'src/lib/bootloader/autoinst_profile/global_section.rb', line 93


#generic_mbr ⇒ Boolean?



# File 'src/lib/bootloader/autoinst_profile/global_section.rb', line 80


#gfxmode ⇒ String?



# File 'src/lib/bootloader/autoinst_profile/global_section.rb', line 84


#hiddenmenu ⇒ String?



# File 'src/lib/bootloader/autoinst_profile/global_section.rb', line 87


#os_prober ⇒ Boolean?



# File 'src/lib/bootloader/autoinst_profile/global_section.rb', line 90


#password ⇒ PasswordSection?



126
127
128
# File 'src/lib/bootloader/autoinst_profile/global_section.rb', line 126

def password
  @password
end

#secure_boot ⇒ String?



# File 'src/lib/bootloader/autoinst_profile/global_section.rb', line 100


#serial ⇒ String?



# File 'src/lib/bootloader/autoinst_profile/global_section.rb', line 97


#terminal ⇒ String?



# File 'src/lib/bootloader/autoinst_profile/global_section.rb', line 104


#timeout ⇒ Integer?



# File 'src/lib/bootloader/autoinst_profile/global_section.rb', line 107


#update_nvram ⇒ String?



# File 'src/lib/bootloader/autoinst_profile/global_section.rb', line 110


#vgamode ⇒ String?



# File 'src/lib/bootloader/autoinst_profile/global_section.rb', line 114


#xen_append ⇒ String?



# File 'src/lib/bootloader/autoinst_profile/global_section.rb', line 117


#xen_kernel_append ⇒ String?



# File 'src/lib/bootloader/autoinst_profile/global_section.rb', line 121


Class Method Details

.attributes ⇒ Object



29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# File 'src/lib/bootloader/autoinst_profile/global_section.rb', line 29

def self.attributes
  [
    { name: :activate },
    { name: :append },
    { name: :boot_boot },
    { name: :boot_custom },
    { name: :boot_extended },
    { name: :boot_mbr },
    { name: :boot_root },
    { name: :cpu_mitigations },
    { name: :generic_mbr },
    { name: :gfxmode },
    { name: :hiddenmenu },
    { name: :os_prober },
    { name: :secure_boot },
    { name: :serial },
    { name: :terminal },
    { name: :timeout },
    { name: :update_nvram },
    { name: :vgamode },
    { name: :xen_append },
    { name: :xen_kernel_append }
  ]
end

Instance Method Details

#init_from_hashes(hash) ⇒ Object

Method used by new_from_hashes to populate the attributes.



131
132
133
134
135
136
# File 'src/lib/bootloader/autoinst_profile/global_section.rb', line 131

def init_from_hashes(hash)
  super
  return unless hash["password"].is_a?(Hash)

  @password = PasswordSection.new_from_hashes(hash["password"], self)
end