Class: Installation::Dialogs::NtpSetup

Inherits:
CWM::Dialog
  • Object
show all
Defined in:
src/lib/installation/dialogs/ntp_setup.rb

Overview

Simple dialog for settings the NTP server names

Instance Method Summary collapse

Constructor Details

#initializeNtpSetup

Returns a new instance of NtpSetup.


29
30
31
32
33
34
35
36
37
# File 'src/lib/installation/dialogs/ntp_setup.rb', line 29

def initialize
  textdomain "installation"

  Yast.import "Lan"
  Yast.import "Product"
  Yast.import "ProductFeatures"

  super
end

Instance Method Details

#contentsObject


47
48
49
50
51
52
53
54
55
56
57
# File 'src/lib/installation/dialogs/ntp_setup.rb', line 47

def contents
  return @content if @content

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

#titleString

The dialog title

Returns:

  • (String)

    the title


42
43
44
45
# File 'src/lib/installation/dialogs/ntp_setup.rb', line 42

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