Class: Installation::MicroOSRoleDialog

Inherits:
CWM::Dialog
  • Object
show all
Includes:
DhcpNtpServers
Defined in:
src/lib/installation/clients/microos_role_dialog.rb

Overview

This library provides a simple dialog for setting the admin role specific settings:

  • the NTP server names

Instance Method Summary collapse

Methods included from DhcpNtpServers

#dhcp_ntp_servers, #ntp_fallback, #ntp_servers

Constructor Details

#initializeMicroOSRoleDialog

Returns a new instance of MicroOSRoleDialog.



32
33
34
35
36
37
38
# File 'src/lib/installation/clients/microos_role_dialog.rb', line 32

def initialize
  textdomain "installation"

  Yast.import "Product"
  Yast.import "ProductFeatures"
  super
end

Instance Method Details

#contentsObject



50
51
52
53
54
55
56
57
58
# File 'src/lib/installation/clients/microos_role_dialog.rb', line 50

def contents
  return @content if @content

  @content = HSquash(
    MinWidth(50,
      # preselect the servers from the DHCP response
      Installation::Widgets::NtpServer.new(ntp_servers))
  )
end

#titleString

The dialog title

Returns:

  • (String)

    the title



45
46
47
48
# File 'src/lib/installation/clients/microos_role_dialog.rb', line 45

def title
  # TRANSLATORS: dialog title
  _("NTP Configuration")
end