Class List Method List File List

# Class: Yast::OnlineUpdateClass

Inherits:
  Module
  - Object
  - Module
  - Yast::OnlineUpdateClass
  show all
Defined in:
  ../../src/modules/OnlineUpdate.rb

## Instance Method Summary (collapse)

- - (Object) main

## Instance Method Details

### - (`Object`) main

    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
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    # File '../../src/modules/OnlineUpdate.rb', line 30

    def main
      textdomain "online-update"

      # flag: do we do an update from CD?
      @cd_update = false

      # no. of temporary source
      @cd_source = -1

      # if yast should be restarted after installation of patches
      @restart_yast = false

      # if patch requiring relogin was installed
      @relogin_needed = false

      # popup message
      @relogin_message = _(
        "At least one of the updates installed requires restart of the session.\nLog out and in again as soon as possible.\n"
      )

      # popup message
      @restart_message = _(
        "Packages for package management were updated.\nFinishing and restarting now."
      )

      # if patch with reboot flag was installed
      @reboot_needed = false

      # packages that are requiring reboot
      @reboot_packages = []

      # popup message
      @reboot_message = _(
        "At least one of the updates installed requires a system reboot to function\nproperly. Reboot the system as soon as possible."
      )

      # popup message
      @reboot_message_list = _(
        "These updates require a system reboot to function properly:\n" +
          "\n" +
          "%1.\n" +
          "\n" +
          "Reboot the system as soon as possible."
      )

      # continue/cancel popup text
      @more_selected_message = _(
        "There are patches for package management available that require a restart of YaST.\n" +
          "They should be installed first and all other patches after the restart.\n" +
          "\n" +
          "You selected some other patches to be installed now.\n" +
          "\n" +
          "Continue with installing your selection?"
      )

      # If simple Package selector should be opened
      @simple_mode = false

      # Default URL for Patch CD source
      @cd_url = "cd:///"

      # Default Patch CD source directory
      @cd_directory = "patches"

      # If release notes should be shown after update
      @show_release_notes = false

      # EOF
    end