Class: CryptReboot::InstantiableConfig

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

Overview

Configuration object

Direct Known Subclasses

Config

Constant Summary collapse

UnrecognizedSetting =
Class.new StandardError

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#cat_pathObject (readonly)

Returns the value of attribute cat_path.



8
9
10
# File 'lib/crypt_reboot/instantiable_config.rb', line 8

def cat_path
  @cat_path
end

#cmdlineObject (readonly)

Returns the value of attribute cmdline.



8
9
10
# File 'lib/crypt_reboot/instantiable_config.rb', line 8

def cmdline
  @cmdline
end

#cpio_pathObject (readonly)

Returns the value of attribute cpio_path.



8
9
10
# File 'lib/crypt_reboot/instantiable_config.rb', line 8

def cpio_path
  @cpio_path
end

#cryptsetup_pathObject (readonly)

Returns the value of attribute cryptsetup_path.



8
9
10
# File 'lib/crypt_reboot/instantiable_config.rb', line 8

def cryptsetup_path
  @cryptsetup_path
end

#debugObject (readonly)

Returns the value of attribute debug.



8
9
10
# File 'lib/crypt_reboot/instantiable_config.rb', line 8

def debug
  @debug
end

#grep_pathObject (readonly)

Returns the value of attribute grep_path.



8
9
10
# File 'lib/crypt_reboot/instantiable_config.rb', line 8

def grep_path
  @grep_path
end

#initramfsObject (readonly)

Returns the value of attribute initramfs.



8
9
10
# File 'lib/crypt_reboot/instantiable_config.rb', line 8

def initramfs
  @initramfs
end

#insecure_memoryObject (readonly)

Returns the value of attribute insecure_memory.



8
9
10
# File 'lib/crypt_reboot/instantiable_config.rb', line 8

def insecure_memory
  @insecure_memory
end

#kernelObject (readonly)

Returns the value of attribute kernel.



8
9
10
# File 'lib/crypt_reboot/instantiable_config.rb', line 8

def kernel
  @kernel
end

#kexec_pathObject (readonly)

Returns the value of attribute kexec_path.



8
9
10
# File 'lib/crypt_reboot/instantiable_config.rb', line 8

def kexec_path
  @kexec_path
end

#mount_pathObject (readonly)

Returns the value of attribute mount_path.



8
9
10
# File 'lib/crypt_reboot/instantiable_config.rb', line 8

def mount_path
  @mount_path
end

#patch_save_pathObject (readonly)

Returns the value of attribute patch_save_path.



8
9
10
# File 'lib/crypt_reboot/instantiable_config.rb', line 8

def patch_save_path
  @patch_save_path
end

#prepare_onlyObject (readonly)

Returns the value of attribute prepare_only.



8
9
10
# File 'lib/crypt_reboot/instantiable_config.rb', line 8

def prepare_only
  @prepare_only
end

#reboot_pathObject (readonly)

Returns the value of attribute reboot_path.



8
9
10
# File 'lib/crypt_reboot/instantiable_config.rb', line 8

def reboot_path
  @reboot_path
end

#skip_lz4_checkObject (readonly)

Returns the value of attribute skip_lz4_check.



8
9
10
# File 'lib/crypt_reboot/instantiable_config.rb', line 8

def skip_lz4_check
  @skip_lz4_check
end

#strace_pathObject (readonly)

Returns the value of attribute strace_path.



8
9
10
# File 'lib/crypt_reboot/instantiable_config.rb', line 8

def strace_path
  @strace_path
end

#umount_pathObject (readonly)

Returns the value of attribute umount_path.



8
9
10
# File 'lib/crypt_reboot/instantiable_config.rb', line 8

def umount_path
  @umount_path
end

#unmkinitramfs_pathObject (readonly)

Returns the value of attribute unmkinitramfs_path.



8
9
10
# File 'lib/crypt_reboot/instantiable_config.rb', line 8

def unmkinitramfs_path
  @unmkinitramfs_path
end

Instance Method Details

#update!(**settings) ⇒ Object



13
14
15
16
17
# File 'lib/crypt_reboot/instantiable_config.rb', line 13

def update!(**settings)
  settings.each do |name, value|
    set!(name, value)
  end
end