Class: Registration::UI::AutoyastAddonDialog

Inherits:
Object
  • Object
show all
Includes:
Yast, Yast::I18n, Yast::Logger, Yast::UIShortcuts
Defined in:
src/lib/registration/ui/autoyast_addon_dialog.rb

Overview

this class displays and runs the dialog for cofiguring addons in AutoYast mode FIXME: use a specific class instead of Hash for AutoYast addons

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(addons) ⇒ AutoyastAddonDialog

the constructor


28
29
30
31
32
# File 'src/lib/registration/ui/autoyast_addon_dialog.rb', line 28

def initialize(addons)
  textdomain "registration"

  @addons = addons
end

Class Method Details

.run(addons) ⇒ Symbol

display and run the dialog for configuring AutoYaST addons


21
22
23
24
# File 'src/lib/registration/ui/autoyast_addon_dialog.rb', line 21

def self.run(addons)
  dialog = AutoyastAddonDialog.new(addons)
  dialog.run
end

Instance Method Details

#runSymbol

display the extension selection dialog and wait for a button click


36
37
38
39
40
41
42
43
44
45
46
47
# File 'src/lib/registration/ui/autoyast_addon_dialog.rb', line 36

def run
  # help text
  help_text = _("<p>Here you can select which extensions or modules"\
      "will be registered together with the base product.</p>")

  Wizard.SetContents(_("Register Optional Extensions or Modules"), content,
    help_text, true, true)

  load_data

  handle_dialog
end