Class: Y2Network::Startmodes::Auto

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

Overview

Auto start mode

Interface will be set up as soon as it is available (and service network was started). This either happens at boot time when network is starting or via hotplug when a interface is added to the system (by adding a device or loading a driver). To be backward compliant onboot, on and boot are aliases for auto. TODO: when reading use that aliases

Constant Summary

Constants inherited from Y2Network::Startmode

Y2Network::Startmode::ALIASES

Instance Attribute Summary

Attributes inherited from Y2Network::Startmode

#alias_name, #name

Instance Method Summary collapse

Methods inherited from Y2Network::Startmode

all, create

Constructor Details

#initialize(alias_name: nil) ⇒ Auto

Returns a new instance of Auto.



34
35
36
37
38
# File 'src/lib/y2network/startmodes/auto.rb', line 34

def initialize(alias_name: nil)
  textdomain "network"

  super("auto", alias_name: alias_name)
end

Instance Method Details

#long_descriptionObject



44
45
46
47
48
# File 'src/lib/y2network/startmodes/auto.rb', line 44

def long_description
  _(
    "Started automatically at boot"
  )
end

#to_human_stringObject



40
41
42
# File 'src/lib/y2network/startmodes/auto.rb', line 40

def to_human_string
  _("At Boot Time")
end