Class: CryptReboot::BootConfig
- Inherits:
-
Object
- Object
- CryptReboot::BootConfig
- Defined in:
- lib/crypt_reboot/boot_config.rb
Overview
Data required for booting
Instance Attribute Summary collapse
-
#cmdline ⇒ Object
readonly
Returns the value of attribute cmdline.
-
#initramfs ⇒ Object
readonly
Returns the value of attribute initramfs.
-
#kernel ⇒ Object
readonly
Returns the value of attribute kernel.
Instance Method Summary collapse
Instance Attribute Details
#cmdline ⇒ Object (readonly)
Returns the value of attribute cmdline.
6 7 8 |
# File 'lib/crypt_reboot/boot_config.rb', line 6 def cmdline @cmdline end |
#initramfs ⇒ Object (readonly)
Returns the value of attribute initramfs.
6 7 8 |
# File 'lib/crypt_reboot/boot_config.rb', line 6 def initramfs @initramfs end |
#kernel ⇒ Object (readonly)
Returns the value of attribute kernel.
6 7 8 |
# File 'lib/crypt_reboot/boot_config.rb', line 6 def kernel @kernel end |
Instance Method Details
#==(other) ⇒ Object
8 9 10 |
# File 'lib/crypt_reboot/boot_config.rb', line 8 def ==(other) kernel == other.kernel && initramfs == other.initramfs && cmdline == other.cmdline end |
#with_initramfs(new_initramfs) ⇒ Object
12 13 14 |
# File 'lib/crypt_reboot/boot_config.rb', line 12 def with_initramfs(new_initramfs) self.class.new(kernel: kernel, initramfs: new_initramfs, cmdline: cmdline) end |