Class: Yast::InstLanClient

Inherits:
Client
  • Object
show all
Includes:
Logger
Defined in:
src/clients/inst_lan.rb

Instance Method Summary collapse

Instance Method Details

#mainObject


36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# File 'src/clients/inst_lan.rb', line 36

def main
  Yast.import "UI"
  Yast.import "Lan"
  Yast.import "GetInstArgs"

  Yast.include self, "network/lan/wizards.rb"

  textdomain "network"

  log.info("----------------------------------------")
  log.info("Lan module started")

  manual_conf_request = GetInstArgs.argmap["skip_detection"] || false
  log.info("Lan module forces manual configuration: #{manual_conf_request}")

  # keep network configuration state in @@conf_net to gurantee same
  # behavior when walking :back in installation workflow
  if !defined?(@@network_configured)
    @@network_configured = !Yast::Lan.yast_config.connections.empty?

  end

  log.info("Configured network found: #{@@network_configured}")

  ret = if @@network_configured && !manual_conf_request
    GetInstArgs.going_back ? :back : :next
  else
    LanSequence()
  end

  log.info("Lan module finished, ret = #{ret}")
  log.info("----------------------------------------")

  ret
end