Class: Yast::SccClient

Inherits:
Client
  • Object
show all
Defined in:
src/clients/scc.rb,
src/clients/registration.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
# File 'src/clients/scc.rb', line 36

def main
  textdomain "registration"

  if WFM.Args.include?("help")
    cmdline_description = {
      "id"   => "scc",
      # Command line help text for the repository module, %1 is "SUSEconnect"
      "help" => _("Use '%s' instead of this YaST module.") % "SUSEconnect"
    }

    CommandLine.Run(cmdline_description)
  else
    Wizard.CreateDialog

    begin
      ::Registration::SwMgmt.init

      return WFM.call("inst_scc", WFM.Args)
    ensure
      Wizard.CloseDialog
    end
  end
end