Class: Yast::TestInstClientClient

Inherits:
Client
  • Object
show all
Defined in:
src/lib/installation/clients/test_inst_client.rb

Instance Method Summary collapse

Instance Method Details

#mainObject


27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# File 'src/lib/installation/clients/test_inst_client.rb', line 27

def main
  Yast.import "Mode"
  Yast.import "Stage"
  Yast.import "Wizard"

  # map args = $[];
  # args["enable_back"] = true;
  # args["enable_next"] = true;

  @aclient = WFM.Args(0)
  return false if !Ops.is_string?(@aclient)

  @client = Convert.to_string(@aclient)

  # Client name does not start with "inst_"
  @client = Ops.add("inst_", @client) if !Builtins.regexpmatch(@client, "^inst_")

  Stage.Set("continue")
  Mode.SetMode("installation")

  Wizard.CreateDialog
  WFM.call(@client, [])
  Wizard.CloseDialog

  true
  # EOF
end