Class: Yast::SshImportDialog

Inherits:
UI::InstallationDialog
  • Object
show all
Defined in:
src/lib/installation/dialogs/ssh_import.rb

Instance Method Summary collapse

Constructor Details

#initializeSshImportDialog

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_handlerObject

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