Class: Registration::UI::RegistrationUpdateDialog

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

Overview

this class handles updating an already registered system

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeRegistrationUpdateDialog

the constructor


31
32
33
# File 'src/lib/registration/ui/registration_update_dialog.rb', line 31

def initialize
  textdomain "registration"
end

Instance Attribute Details

#registrationObject

Returns the value of attribute registration


51
52
53
# File 'src/lib/registration/ui/registration_update_dialog.rb', line 51

def registration
  @registration
end

#registration_uiObject

Returns the value of attribute registration_ui


51
52
53
# File 'src/lib/registration/ui/registration_update_dialog.rb', line 51

def registration_ui
  @registration_ui
end

Class Method Details

.runSymbol

display and run a dialog for updating the current registration


25
26
27
28
# File 'src/lib/registration/ui/registration_update_dialog.rb', line 25

def self.run
  dialog = RegistrationUpdateDialog.new
  dialog.run
end

Instance Method Details

#runSymbol

display and run a dialog for updating the current registration


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

def run
  log.info "Diplaying registration update dialog"

  Yast::Wizard.SetContents(
    _("Registration"),
    Label(_("Registration is being updated...")),
    _("The previous registration is being updated."),
    GetInstArgs.enable_back,
    GetInstArgs.enable_next || Mode.normal
  )

  handle_dialog
end