Class: Y2Network::Startmodes::Hotplug

Inherits:
Y2Network::Startmode show all
Includes:
Yast::I18n
Defined in:
src/lib/y2network/startmodes/hotplug.rb

Overview

hotplug startmode

Interface will be activated when it is available. Use instead of auto for devices which may be missed, such as bonding slaves, usb or other plugable hardware.

Instance Attribute Summary

Attributes inherited from Y2Network::Startmode

#name

Instance Method Summary collapse

Methods inherited from Y2Network::Startmode

#==, all, create

Constructor Details

#initializeHotplug


31
32
33
34
35
# File 'src/lib/y2network/startmodes/hotplug.rb', line 31

def initialize
  textdomain "network"

  super("hotplug")
end

Instance Method Details

#long_descriptionObject


41
42
43
44
45
# File 'src/lib/y2network/startmodes/hotplug.rb', line 41

def long_description
  _(
    "Started automatically when attached"
  )
end

#to_human_stringObject


37
38
39
# File 'src/lib/y2network/startmodes/hotplug.rb', line 37

def to_human_string
  _("On Hotplug")
end