Class: Yast::SshImportDialog
- Inherits:
-
UI::InstallationDialog
- Object
- UI::InstallationDialog
- Yast::SshImportDialog
- Defined in:
- src/lib/installation/dialogs/ssh_import.rb
Instance Method Summary collapse
-
#initialize ⇒ SshImportDialog
constructor
A new instance of SshImportDialog.
-
#next_handler ⇒ Object
Event callback for the 'ok' button.
Constructor Details
#initialize ⇒ SshImportDialog
Returns a new instance of SshImportDialog.
25 26 27 28 29 30 31 32 33 |
# File 'src/lib/installation/dialogs/ssh_import.rb', line 25 def initialize super Yast.import "UI" Yast.import "Label" Yast.import "Mode" textdomain "installation" end |
Instance Method Details
#next_handler ⇒ Object
Event callback for the 'ok' button
36 37 38 39 40 41 42 43 44 |
# File 'src/lib/installation/dialogs/ssh_import.rb', line 36 def next_handler partition = UI.QueryWidget(Id(:device), :Value) partition = nil unless UI.QueryWidget(Id(:import_ssh_key), :Value) copy_config = UI.QueryWidget(Id(:copy_config), :Value) log.info "SshImportDialog partition => #{partition} copy_config => #{copy_config}" importer.device = partition importer.copy_config = copy_config super end |