Class: Yast::CheckmediaClient

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

Overview

Client for checking media integrity

Instance Method Summary collapse

Instance Method Details

#mainObject


5
6
7
8
9
10
11
12
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
# File 'src/clients/checkmedia.rb', line 5

def main
  Yast.import "Pkg"
  Yast.import "UI"

  textdomain "packager"

  Yast.import "CommandLine"

  Yast.include self, "checkmedia/ui.rb"

  # The main ()
  Builtins.y2milestone("Checkmedia module started")
  Builtins.y2milestone("----------------------------------------")
  Builtins.y2milestone("arguments: %1", WFM.Args)

  # main ui function
  @ret = nil

  # Command line definition - minimal command line support
  @cmdline = {
    # module description
    "help"       => _(
      "Check CD or DVD media integrity"
    ),
    "id"         => "checkmedia",
    "guihandler" => fun_ref(method(:MainSequence), "any ()")
  }

  @ret = CommandLine.Run(@cmdline)

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

  # Finish
  Builtins.y2milestone("Checkmedia module finished")
  deep_copy(@ret)
end