Class: Yast::BootloaderClient

Inherits:
Client
  • Object
show all
Defined in:
src/clients/bootloader.rb

Instance Method Summary collapse

Instance Method Details

#GuiHandlerBoolean

CommandLine handler for running GUI

Returns:

  • (Boolean)

    true if settings were saved



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

#mainObject



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