Class: Y2Network::Widgets::S390IPAddressTakeover

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

Overview

Checkbox for enabling IPA Takeover in the configured interface

Instance Method Summary collapse

Constructor Details

#initialize(settings) ⇒ S390IPAddressTakeover

Constructor

Parameters:


185
186
187
188
# File 'src/lib/y2network/widgets/s390_common.rb', line 185

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

Instance Method Details

#helpObject

See Also:

  • CWM::AbstractWidget

201
202
203
204
# File 'src/lib/y2network/widgets/s390_common.rb', line 201

def help
  _("<p>Select <b>Enable IPA Takeover</b> if IP address takeover should be enabled " \
    "for this interface.</p>")
end

#initObject

See Also:

  • CWM::AbstractWidget

191
192
193
# File 'src/lib/y2network/widgets/s390_common.rb', line 191

def init
  self.value = !!@settings.ipa_takeover
end

#labelObject

See Also:

  • CWM::AbstractWidget

196
197
198
# File 'src/lib/y2network/widgets/s390_common.rb', line 196

def label
  _("Enable IPA takeover")
end

#storeObject

See Also:

  • CWM::AbstractWidget

207
208
209
# File 'src/lib/y2network/widgets/s390_common.rb', line 207

def store
  @settings.ipa_takeover = value
end