Class: CmdLine::Grub
Instance Method Summary collapse
-
#initialize(arg) ⇒ Grub
constructor
A new instance of Grub.
- #main ⇒ Object
Methods included from CmdLine
Constructor Details
#initialize(arg) ⇒ Grub
Returns a new instance of Grub.
62 63 64 65 66 |
# File 'lib/cmdline.rb', line 62 def initialize(arg) @conf = arg[:workdir] @default_alias = 'GRUB_CMDLINE_LINUX_DEFAULT' @cmd_alias = 'GRUB_CMDLINE_LINUX' end |
Instance Method Details
#main ⇒ Object
68 69 70 71 72 73 74 |
# File 'lib/cmdline.rb', line 68 def main puts ' > Generate cmdline for Grub...' cpu_mitigations distrust_cpu kernel_hardening quiet end |