Class: Yast::InstLanClient
- Inherits:
-
Client
- Object
- Client
- Yast::InstLanClient
- Includes:
- Logger
- Defined in:
- src/lib/network/clients/inst_lan.rb
Overview
Client for configuring the network during installation.
If the network configuration is managed by NetworkManager or some connection config is already present the client skip the configuration sequence.
The configuration sequence can be forced passing the 'skip_detection' argument. Additionally, the abort button could be hide passing the 'hide_abort_button' argument
the abort button Yast::WFM.CallFunction( "inst_lan", [args.merge("skip_detection" => true, "hide_abort_button" => true)] )
Class Attribute Summary collapse
-
.configured ⇒ Object
Returns the value of attribute configured.
Instance Method Summary collapse
-
#initialize ⇒ InstLanClient
constructor
A new instance of InstLanClient.
- #main ⇒ Object
Constructor Details
#initialize ⇒ InstLanClient
Returns a new instance of InstLanClient.
61 62 63 64 65 |
# File 'src/lib/network/clients/inst_lan.rb', line 61 def initialize textdomain "network" Yast.include self, "network/lan/wizards.rb" end |
Class Attribute Details
.configured ⇒ Object
Returns the value of attribute configured.
58 59 60 |
# File 'src/lib/network/clients/inst_lan.rb', line 58 def configured @configured end |
Instance Method Details
#main ⇒ Object
67 68 69 70 71 72 73 74 75 76 77 78 79 |
# File 'src/lib/network/clients/inst_lan.rb', line 67 def main log_and_return do manual_conf_request = GetInstArgs.argmap["skip_detection"] || false log.info("Lan module forces manual configuration: #{manual_conf_request}") if manual_conf_request LanSequence() else log.info("Configured network found: #{network_configured?}") network_configured? ? :auto : LanSequence() end end end |