Class: Installation::MicroOSRoleDialog
- Inherits:
-
CWM::Dialog
- Object
- CWM::Dialog
- Installation::MicroOSRoleDialog
- 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
- #contents ⇒ Object
-
#initialize ⇒ MicroOSRoleDialog
constructor
A new instance of MicroOSRoleDialog.
-
#title ⇒ String
The dialog title.
Methods included from DhcpNtpServers
#dhcp_ntp_servers, #ntp_fallback, #ntp_servers
Constructor Details
#initialize ⇒ MicroOSRoleDialog
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
#contents ⇒ Object
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 |
#title ⇒ String
The dialog title
45 46 47 48 |
# File 'src/lib/installation/clients/microos_role_dialog.rb', line 45 def title # TRANSLATORS: dialog title _("NTP Configuration") end |