Class: Yast::BootloaderClient
- Inherits:
-
Client
- Object
- Client
- Yast::BootloaderClient
- Defined in:
- src/clients/bootloader.rb
Instance Method Summary collapse
-
#GuiHandler ⇒ Boolean
CommandLine handler for running GUI.
- #main ⇒ Object
Instance Method Details
#GuiHandler ⇒ Boolean
CommandLine handler for running GUI
44 45 46 47 48 49 50 |
# File 'src/clients/bootloader.rb', line 44 def GuiHandler ret = ::Bootloader::MainDialog.new.run return false if [:abort, :back, :nil].include?(ret) true end |
#main ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'src/clients/bootloader.rb', line 23 def main textdomain "bootloader" Yast.import "CommandLine" # the command line description map cmdline = { "id" => "bootloader", # command line help text for Bootloader module "help" => _("Boot loader configuration module"), "guihandler" => fun_ref(method(:GuiHandler), "boolean ()") } CommandLine.Run(cmdline) end |