Class: Yast::InstserverClient

Inherits:
Client
  • Object
show all
Defined in:
src/clients/instserver.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) main



13
14
15
16
17
18
19
20
21
22
23
24
25
26
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
54
55
56
# File 'src/clients/instserver.rb', line 13

def main
  Yast.import "UI"

  #**
  # <h3>Configuration of instserver</h3>

  textdomain "instserver"

  # The main ()
  Builtins.y2milestone("----------------------------------------")
  Builtins.y2milestone("Instserver module started")

  Yast.import "Progress"
  Yast.import "Report"
  Yast.import "Summary"
  Yast.import "CommandLine"

  Yast.include self, "instserver/wizards.rb"
  # is this proposal or not?
  @test = false
  @args = WFM.Args
  if Ops.greater_than(Builtins.size(@args), 0)
    if Ops.is_path?(WFM.Args(0)) && WFM.Args(0) == path(".test")
      Builtins.y2milestone("Using PROPOSE mode")
      @test = true
    end
  end

  @cmdline_description = {
    "id"         => "instserver",
    "guihandler" => fun_ref(method(:InstserverSequence), "any ()")
  }

  @ret = CommandLine.Run(@cmdline_description)
  Builtins.y2debug("ret=%1", @ret)

  # Finish
  Builtins.y2milestone("Instserver module finished")
  Builtins.y2milestone("----------------------------------------")

  deep_copy(@ret) 

  # EOF
end