Class: Y2Network::Widgets::WirelessPassword

Inherits:
CWM::Password
  • Object
show all
Defined in:
src/lib/y2network/widgets/wireless_password.rb

Overview

Widget for WPA "home" password. It is not used for EAP password.

Instance Method Summary collapse

Constructor Details

#initialize(builder) ⇒ WirelessPassword


27
28
29
30
# File 'src/lib/y2network/widgets/wireless_password.rb', line 27

def initialize(builder)
  textdomain "network"
  @builder = builder
end

Instance Method Details

#initObject


36
37
38
# File 'src/lib/y2network/widgets/wireless_password.rb', line 36

def init
  self.value = @builder.wpa_psk
end

#labelObject


32
33
34
# File 'src/lib/y2network/widgets/wireless_password.rb', line 32

def label
  _("Password")
end

#storeObject


40
41
42
# File 'src/lib/y2network/widgets/wireless_password.rb', line 40

def store
  @builder.wpa_psk = value
end