Class: Yast::BootloaderClient

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

Instance Method Summary (collapse)

Instance Method Details

- (Boolean) GuiHandler

CommandLine handler for running GUI

Returns:

  • (Boolean)

    true if settings were saved



44
45
46
47
48
49
# File 'src/clients/bootloader.rb', line 44

def GuiHandler
  ret = ::Bootloader::MainDialog.new.run

  return false if ret == :abort || ret == :back || ret == :nil
  true
end

- (Object) main



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