Class: CryptReboot::BootConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/crypt_reboot/boot_config.rb

Overview

Data required for booting

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#cmdlineObject (readonly)

Returns the value of attribute cmdline.



6
7
8
# File 'lib/crypt_reboot/boot_config.rb', line 6

def cmdline
  @cmdline
end

#initramfsObject (readonly)

Returns the value of attribute initramfs.



6
7
8
# File 'lib/crypt_reboot/boot_config.rb', line 6

def initramfs
  @initramfs
end

#kernelObject (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